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@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6054>
This commit is contained in:
Eric Anholt 2020-07-23 13:39:56 -07:00 committed by Marge Bot
parent b3c822a0a8
commit a29b7b6ff5
1 changed files with 2 additions and 0 deletions

View File

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