Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
nir_ssa_def *s;
switch (intr->intrinsic) {
- case nir_intrinsic_store_var:
- out = intr->variables[0]->var;
- break;
case nir_intrinsic_store_deref:
out = nir_deref_instr_get_variable(nir_src_as_deref(intr->src[0]));
break;
.shader = shader,
};
+ nir_assert_unlowered_derefs(shader, nir_lower_load_store_derefs);
+
nir_foreach_function(function, shader) {
if (function->impl)
progress |= lower_impl(&state, function->impl);