diff options
author | Alejandro Piñeiro <[email protected]> | 2018-09-04 12:43:07 +0200 |
---|---|---|
committer | Alejandro Piñeiro <[email protected]> | 2018-09-05 17:02:28 +0200 |
commit | 960f6459be7fb8e55efb63af1672fc4171251e5f (patch) | |
tree | 0b4392235b8f8aca8678e006ba7efd3bb2f5fa6c /src | |
parent | 218ff0d5105fe5d8d77e890d213de972980bd510 (diff) |
intel/compiler: remove unused variable num_images
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp | 2 |
1 files changed, 0 insertions, 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]; |