Skip to content
Commit e13f16a2 authored by Faith Ekstrand's avatar Faith Ekstrand Committed by Juan A. Suarez Romero
Browse files

nir/from_ssa: Don't rewrite derefs destinations to registers



We already call nir_rematerialize_derefs_in_use_blocks_impl prior to
calling nir_lower_ssa_defs_to_regs_block so the assertion that all deref
uses in the block should hold.  This fixes the following CTS test when
SPIR-V optimization recipe 1:

dEQP-VK.glsl.struct.local.loop_nested_struct_array_vertex

Fixes: 606eb56a "intel/nir: Only lower load/store derefs"
Reviewed-by: default avatarIago Toral Quiroga <itoral@igalia.com>
(cherry picked from commit 00f385e6)
parent 4945b25d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment