i965/fs: Fix unused variable warning
authorChad Versace <chad.versace@intel.com>
Wed, 10 Jun 2015 16:50:47 +0000 (09:50 -0700)
committerChad Versace <chad.versace@intel.com>
Fri, 12 Jun 2015 19:37:25 +0000 (12:37 -0700)
Annotate offset_components with attribute 'unused'.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 0f1a28604969596b9bf3d3ed1707812bedca8902..3c24a87c10c1a02d054d15c4eb6f0987fe7fd784 100644 (file)
@@ -1599,7 +1599,8 @@ fs_visitor::nir_emit_texture(const fs_builder &bld, nir_tex_instr *instr)
    bool is_cube_array = instr->sampler_dim == GLSL_SAMPLER_DIM_CUBE &&
                         instr->is_array;
 
-   int lod_components = 0, offset_components = 0;
+   int lod_components = 0;
+   int UNUSED offset_components = 0;
 
    fs_reg coordinate, shadow_comparitor, lod, lod2, sample_index, mcs, tex_offset;