vtn: add hack for system values placed in CrossWorkgroup memory

Upstream bug: https://github.com/intel/llvm/issues/6703

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25701>
This commit is contained in:
Karol Herbst 2023-10-13 11:31:07 +02:00 committed by Marge Bot
parent 41f814df6f
commit 924c8e7bcd

View file

@ -845,7 +845,9 @@ set_mode_system_value(struct vtn_builder *b, nir_variable_mode *mode)
{
vtn_assert(*mode == nir_var_system_value || *mode == nir_var_shader_in ||
/* Hack for NV_mesh_shader due to lack of dedicated storage class. */
*mode == nir_var_mem_task_payload);
*mode == nir_var_mem_task_payload ||
/* Hack for DPCPP, see https://github.com/intel/llvm/issues/6703 */
*mode == nir_var_mem_global);
*mode = nir_var_system_value;
}