mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 03:00:24 +01:00
i965/fs: Fix unused variable warning
Annotate offset_components with attribute 'unused'. Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
d15c06b514
commit
cfc175b409
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue