freedreno/a6xx: Fix compute threadsize type
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 9 Mar 2021 14:39:43 +0000 (15:39 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 11 Mar 2021 20:58:39 +0000 (20:58 +0000)
And use the variable for the other threadsize field.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9493>

src/gallium/drivers/freedreno/a6xx/fd6_compute.c

index e069f19..ff1058e 100644 (file)
@@ -92,7 +92,7 @@ cs_program_emit(struct fd_context *ctx, struct fd_ringbuffer *ring,
                A6XX_HLSQ_CS_CNTL_0_WGOFFSETCONSTID(regid(63, 0)) |
                A6XX_HLSQ_CS_CNTL_0_LOCALIDREGID(local_invocation_id));
        OUT_RING(ring, A6XX_HLSQ_CS_CNTL_1_LINEARLOCALIDREGID(regid(63, 0)) |
-                              A6XX_HLSQ_CS_CNTL_1_THREADSIZE(THREAD128));
+                              A6XX_HLSQ_CS_CNTL_1_THREADSIZE(thrsz));
 
        OUT_PKT4(ring, REG_A6XX_SP_CS_OBJ_START, 2);
        OUT_RELOC(ring, v->bo, 0, 0, 0);   /* SP_CS_OBJ_START_LO/HI */