From 960f6459be7fb8e55efb63af1672fc4171251e5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alejandro=20Pi=C3=B1eiro?= Date: Tue, 4 Sep 2018 12:43:07 +0200 Subject: [PATCH] intel/compiler: remove unused variable num_images Reviewed-by: Jason Ekstrand --- 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.30.2