freedreno: Increase the NUM_UNIT on compute's consts in indirect dispatch.
authorEric Anholt <eric@anholt.net>
Fri, 31 Jul 2020 23:18:41 +0000 (16:18 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Aug 2020 23:06:55 +0000 (23:06 +0000)
Avoids tripping the assert in the next commit -- the blob never uses
num_unit % 4 != 0 for indirect const uploads.

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

src/gallium/drivers/freedreno/ir3/ir3_const.h

index f840e5ee1d7a98da59a7695707da74638b787aa7..5e79661c5bf9af537bf83c1202794ad358320bb0 100644 (file)
@@ -611,7 +611,7 @@ ir3_emit_cs_consts(const struct ir3_shader_variant *v, struct fd_ringbuffer *rin
                                indirect_offset = info->indirect_offset;
                        }
 
-                       emit_const_prsc(ring, v, offset * 4, indirect_offset, 4, indirect);
+                       emit_const_prsc(ring, v, offset * 4, indirect_offset, 16, indirect);
 
                        pipe_resource_reference(&indirect, NULL);
                } else {