anv/pipeline: Convert lower_input_attachments to deref instructions
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>
This commit is contained in:
@@ -218,12 +218,12 @@ anv_shader_compile_to_nir(struct anv_pipeline *pipeline,
|
||||
|
||||
nir = brw_preprocess_nir(compiler, nir);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_deref_instrs,
|
||||
nir_lower_texture_derefs | nir_lower_image_derefs);
|
||||
|
||||
if (stage == MESA_SHADER_FRAGMENT)
|
||||
NIR_PASS_V(nir, anv_nir_lower_input_attachments);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_deref_instrs,
|
||||
nir_lower_texture_derefs | nir_lower_image_derefs);
|
||||
|
||||
return nir;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user