aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-02-11 14:50:35 -0800
committerEric Anholt <[email protected]>2015-02-12 16:29:53 -0800
commit6489cb1ae6f3cb999b1a9c60d941ef4c388febd1 (patch)
tree25be5d48510b416f6759b6af6993fd7af6f47f74 /src/mesa
parent55a57834bf912916a5e07486b32f1778b35657f6 (diff)
i965: Shut up a compiler warning about uninitialized var.
We always pass this argument, even if it won't be used by the particular texture op. Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_nir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index da81b61a98a..3014e3ef1c2 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -1494,7 +1494,7 @@ fs_visitor::nir_emit_texture(nir_tex_instr *instr)
bool is_cube_array = instr->sampler_dim == GLSL_SAMPLER_DIM_CUBE &&
instr->is_array;
- int lod_components, offset_components = 0;
+ int lod_components = 0, offset_components = 0;
fs_reg coordinate, shadow_comparitor, lod, lod2, sample_index, mcs, offset;