From e8a1bbb07103ee59f03f09edf14d22d05b1a5a0f Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 5 Jan 2026 09:28:29 -0800 Subject: [PATCH] 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 Part-of: --- src/freedreno/computerator/a6xx.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/freedreno/computerator/a6xx.cc b/src/freedreno/computerator/a6xx.cc index 8e983a0749b..4d6cdc5332e 100644 --- a/src/freedreno/computerator/a6xx.cc +++ b/src/freedreno/computerator/a6xx.cc @@ -550,8 +550,13 @@ a6xx_emit_grid(struct kernel *kernel, uint32_t grid[3], cs_uav_emit(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;