[Mesa-dev] [PATCH 1/4] intel/compiler: remove unused variable num_images
Alejandro PiƱeiro
apinheiro at igalia.com
Wed Sep 5 14:10:58 UTC 2018
---
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
index 0b028afdce7..34cabdc2977 100644
--- a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
+++ b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
@@ -343,8 +343,6 @@ brw_nir_lower_glsl_images(nir_shader *shader,
case nir_intrinsic_image_deref_store_raw_intel: {
nir_deref_instr *deref = nir_src_as_deref(intrin->src[0]);
nir_variable *var = nir_deref_instr_get_variable(deref);
- const unsigned num_images =
- MAX2(1, var->type->arrays_of_arrays_size());
struct gl_uniform_storage *storage =
&prog->sh.data->UniformStorage[var->data.location];
--
2.14.1
More information about the mesa-dev
mailing list