radeonsi: set uses_vmem_load_other for nir_intrinsic_load_buffer_amd

Before lower TES load input to load buffer, mark this flag for this
intrinsic, otherwise we get corruption with GFX10 after the lowering.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16705>
This commit is contained in:
Qiang Yu 2022-05-28 22:20:08 +08:00 committed by Marge Bot
parent 2b7e167bbd
commit 6b6aeeecbb

View file

@ -435,13 +435,6 @@ static void scan_instruction(const struct nir_shader *nir, struct si_shader_info
if (!nir_src_is_const(intr->src[1]))
info->uses_vmem_load_other = true;
break;
case nir_intrinsic_load_constant:
info->uses_vmem_load_other = true;
break;
case nir_intrinsic_load_barycentric_at_sample: /* This loads sample positions. */
info->uses_vmem_load_other = true;
break;
case nir_intrinsic_load_input:
case nir_intrinsic_load_input_vertex:
@ -451,6 +444,12 @@ static void scan_instruction(const struct nir_shader *nir, struct si_shader_info
info->uses_vmem_load_other = true;
break;
case nir_intrinsic_load_constant:
case nir_intrinsic_load_barycentric_at_sample: /* This loads sample positions. */
case nir_intrinsic_load_buffer_amd:
info->uses_vmem_load_other = true;
break;
default:
if (is_image ||
is_bindless_image ||