intel/compiler: remove unused variable num_images
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 4 Sep 2018 10:43:07 +0000 (12:43 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 5 Sep 2018 15:02:28 +0000 (17:02 +0200)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp

index 0b028afdce73811aa70b2bfcb2038b6564359c67..34cabdc297703a4a19c7017175f73edee6c23fee 100644 (file)
@@ -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];