Mesa (master): nir/opt_undef: Handle a couple more normal store intrinsics.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Aug 20 17:16:03 UTC 2020


Module: Mesa
Branch: master
Commit: a29b7b6ff5c2a3531cf6cac4aa8bda4f76d801ee
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a29b7b6ff5c2a3531cf6cac4aa8bda4f76d801ee

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Jul 23 13:39:56 2020 -0700

nir/opt_undef: Handle a couple more normal store intrinsics.

They've got the value in the same slot as the others, and the same undef
behavior should be fine.

Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6054>

---

 src/compiler/nir/nir_opt_undef.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compiler/nir/nir_opt_undef.c b/src/compiler/nir/nir_opt_undef.c
index 0edd7ae6ee0..e03e5b88efc 100644
--- a/src/compiler/nir/nir_opt_undef.c
+++ b/src/compiler/nir/nir_opt_undef.c
@@ -112,6 +112,8 @@ opt_undef_store(nir_intrinsic_instr *intrin)
    case nir_intrinsic_store_per_vertex_output:
    case nir_intrinsic_store_ssbo:
    case nir_intrinsic_store_shared:
+   case nir_intrinsic_store_global:
+   case nir_intrinsic_store_scratch:
       arg_index =  0;
       break;
    default:



More information about the mesa-commit mailing list