nir/lower_task_shader: fix task payload corruption when shared memory workaround...
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Wed, 30 Nov 2022 12:47:19 +0000 (13:47 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 6 Dec 2022 16:31:11 +0000 (16:31 +0000)
commitffefa386fda5aec8f66b4499d93b41a846a0b86c
tree0fc2b2ad864b64b362ad75e09debe2a14863bce5
parentbd30adf89d3b66acca604c10e6208e56dbb8257d
nir/lower_task_shader: fix task payload corruption when shared memory workaround is enabled

We were not taking into account that when all invocations within workgroup
are active, we'll copy more data than needed, corrupting task payload
of other workgroups.

Fixes: 8aff8d3dd42 ("nir: Add common task shader lowering to make the backend's job easier.")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20080>
src/compiler/nir/nir_lower_task_shader.c