freedreno/a6xx: Use with_crb() helper

Small cleanup that was missed when introducing the helper.

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38450>
This commit is contained in:
Rob Clark 2025-10-20 12:01:55 -07:00 committed by Marge Bot
parent 392293ce48
commit b2349354e3

View file

@ -440,9 +440,7 @@ draw_vbos(struct fd_context *ctx, const struct pipe_draw_info *info,
ctx->batch->tessellation = true; ctx->batch->tessellation = true;
} }
{ with_crb (cs, 3) {
fd_crb crb(cs, 3);
uint32_t index_start = is_indexed(DRAW) ? draws[0].index_bias : draws[0].start; uint32_t index_start = is_indexed(DRAW) ? draws[0].index_bias : draws[0].start;
if (ctx->last.dirty || (ctx->last.index_start != index_start)) { if (ctx->last.dirty || (ctx->last.index_start != index_start)) {
crb.add(A6XX_VFD_INDEX_OFFSET(index_start)); crb.add(A6XX_VFD_INDEX_OFFSET(index_start));