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>
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:
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 ||