radeonsi: Remove implicit const cast.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 16 Mar 2019 21:58:38 +0000 (22:58 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 16 Mar 2019 23:07:38 +0000 (00:07 +0100)
Fixes: b9e02fe138e "gallium: add pipe_grid_info::last_block"
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
src/gallium/drivers/radeonsi/si_compute.c

index 6c2269d903af0fab19ab98a01e86829b8bec6eb1..729dc4e325f004375df9b4d58442ca19890e3467 100644 (file)
@@ -804,7 +804,7 @@ static void si_emit_dispatch_packets(struct si_context *sctx,
                 * allow launching waves out-of-order. (same as Vulkan) */
                S_00B800_ORDER_MODE(sctx->chip_class >= CIK);
 
-       uint *last_block = info->last_block;
+       const uint *last_block = info->last_block;
        bool partial_block_en = last_block[0] || last_block[1] || last_block[2];
 
        radeon_set_sh_reg_seq(cs, R_00B81C_COMPUTE_NUM_THREAD_X, 3);