freedreno/computerator: Use correct CP_SET_RENDER_MODE

The format of the packet changed with gen8.  This went unnoticed because
in this particular case the contents of the packet work out the same.
But lets be correct about this.

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39254>
This commit is contained in:
Rob Clark 2026-01-05 09:28:29 -08:00 committed by Marge Bot
parent 2ea609917b
commit e8a1bbb071

View file

@ -550,8 +550,13 @@ a6xx_emit_grid(struct kernel *kernel, uint32_t grid[3],
cs_uav_emit<CHIP>(cs, a6xx_backend->dev, kernel);
cs_ubo_emit(cs, kernel);
fd_pkt7(cs, CP_SET_MARKER, 1)
.add(A6XX_CP_SET_MARKER_0(.mode = RM6_COMPUTE));
if (CHIP >= A8XX) {
fd_pkt7(cs, CP_SET_MARKER, 1)
.add(A8XX_CP_SET_MARKER_0(.mode = RM6_COMPUTE));
} else{
fd_pkt7(cs, CP_SET_MARKER, 1)
.add(A6XX_CP_SET_MARKER_0(.mode = RM6_COMPUTE));
}
const unsigned *local_size = kernel->local_size;
const unsigned *num_groups = grid;