nir: disaallow reordering for r600 shared load and remove component field
authorGert Wollny <gert.wollny@collabora.com>
Sun, 28 Feb 2021 18:03:55 +0000 (19:03 +0100)
committerGert Wollny <gert.wollny@collabora.com>
Tue, 2 Mar 2021 17:46:17 +0000 (18:46 +0100)
The original shared load op can't be reordered, so it might be better to
also not allow this for the lowered variant.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Acked-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9330>

src/compiler/nir/nir_intrinsics.py

index daca8e7..a1a201f 100644 (file)
@@ -1120,7 +1120,7 @@ system_value("tcs_rel_patch_id_r600", 1)
 system_value("tcs_tess_factor_base_r600", 1)
 
 # load as many components as needed giving per-component addresses
-intrinsic("load_local_shared_r600", src_comp=[0], dest_comp=0, indices = [COMPONENT], flags = [CAN_ELIMINATE, CAN_REORDER])
+intrinsic("load_local_shared_r600", src_comp=[0], dest_comp=0, indices = [], flags = [CAN_ELIMINATE])
 
 store("local_shared_r600", [1], [WRITE_MASK])
 store("tf_r600", [])