Mesa (master): freedreno: Increase the NUM_UNIT on compute's consts in indirect dispatch.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 5 23:25:22 UTC 2020


Module: Mesa
Branch: master
Commit: 3e970de36033b8f47664a945359010c8c6e7e74d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e970de36033b8f47664a945359010c8c6e7e74d

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Jul 31 16:18:41 2020 -0700

freedreno: Increase the NUM_UNIT on compute's consts in indirect dispatch.

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/freedreno/ir3/ir3_const.h b/src/gallium/drivers/freedreno/ir3/ir3_const.h
index f840e5ee1d7..5e79661c5bf 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_const.h
+++ b/src/gallium/drivers/freedreno/ir3/ir3_const.h
@@ -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 {



More information about the mesa-commit mailing list