projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eba2ad6
)
i965: Silence uninitialized variable warning.
author
Vinson Lee
<vlee@vmware.com>
Fri, 5 Nov 2010 00:39:17 +0000
(17:39 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 5 Nov 2010 00:39:17 +0000
(17:39 -0700)
Silences this GCC warning.
brw_wm_fp.c: In function 'precalc_tex':
brw_wm_fp.c:666: warning: 'tmpcoord.Index' may be used uninitialized in this function
src/mesa/drivers/dri/i965/brw_wm_fp.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_wm_fp.c
b/src/mesa/drivers/dri/i965/brw_wm_fp.c
index 938fb80857be7b7e9968d0b5d6940fb63a557ee4..d69b83653e431a38801cb37bcefd5f233fe63d57 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_wm_fp.c
+++ b/
src/mesa/drivers/dri/i965/brw_wm_fp.c
@@
-663,7
+663,7
@@
static void precalc_tex( struct brw_wm_compile *c,
const struct prog_instruction *inst )
{
struct prog_src_register coord;
- struct prog_dst_register tmpcoord;
+ struct prog_dst_register tmpcoord
= { 0 }
;
const GLuint unit = c->fp->program.Base.SamplerUnits[inst->TexSrcUnit];
assert(unit < BRW_MAX_TEX_UNIT);