ac/nir: When task->mesh dispatch Y or Z are 0, also set X to 0.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 30 Mar 2023 20:41:45 +0000 (22:41 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 1 Apr 2023 14:46:50 +0000 (14:46 +0000)
commit4de9a4b2b8c41864aadae89be705ef125a745a0a
tree7ce852278bd2613dae9cce853f80859850bc083c
parent4683b21399df1cc20a02d36478fe4f4d8f743fd4
ac/nir: When task->mesh dispatch Y or Z are 0, also set X to 0.

AMD recommends doing this to speed up the CP when it processes
the draw ring entries. LLPC also does this.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22211>
src/amd/common/ac_nir_lower_taskmesh_io_to_mem.c