projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55a5783
)
i965: Shut up a compiler warning about uninitialized var.
author
Eric Anholt
<eric@anholt.net>
Wed, 11 Feb 2015 22:50:35 +0000
(14:50 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 13 Feb 2015 00:29:53 +0000
(16:29 -0800)
We always pass this argument, even if it won't be used by the particular
texture op.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index da81b61a98a315269d248fa2361a14fc958d0c2f..3014e3ef1c2ca632ec675f19959f36dc39e55021 100644
(file)
--- 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;