mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
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:
parent
41f814df6f
commit
924c8e7bcd
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue