llvmpipe: Support image variables living in nir_var_mem_image

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4743>
This commit is contained in:
Jason Ekstrand
2021-09-29 18:21:13 -05:00
committed by Marge Bot
parent d84fd86af1
commit 225caf537a
2 changed files with 4 additions and 2 deletions

View File

@@ -560,7 +560,8 @@ lvp_shader_compile_to_ir(struct lvp_pipeline *pipeline,
NIR_PASS_V(nir, nir_lower_compute_system_values, NULL);
NIR_PASS_V(nir, nir_lower_clip_cull_distance_arrays);
NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_uniform, NULL);
NIR_PASS_V(nir, nir_remove_dead_variables,
nir_var_uniform | nir_var_mem_image, NULL);
lvp_lower_pipeline_layout(pipeline->device, pipeline->layout, nir);