projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d203dbc
)
i915: Fix use of uninitialized variable in OPCODE_NOISE stub.
author
Eric Anholt
<eric@anholt.net>
Tue, 22 Dec 2009 19:08:38 +0000
(11:08 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 22 Dec 2009 22:20:26 +0000
(14:20 -0800)
We don't actually care which register is used since we're just
swizzling (0,0,0,0), but it should be a valid variable number.
Detected by clang.
src/mesa/drivers/dri/i915/i915_fragprog.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915/i915_fragprog.c
b/src/mesa/drivers/dri/i915/i915_fragprog.c
index 9e4d31803602ac4a9b117c17a4e8181c3a4fab38..a273bd28ea1fe8d8e97a7898de0d3fda3c63b839 100644
(file)
--- a/
src/mesa/drivers/dri/i915/i915_fragprog.c
+++ b/
src/mesa/drivers/dri/i915/i915_fragprog.c
@@
-663,7
+663,7
@@
upload_program(struct i915_fragment_program *p)
A0_MOV,
get_result_vector(p, inst),
get_result_flags(inst), 0,
- swizzle(
src0
, ZERO, ZERO, ZERO, ZERO), 0, 0);
+ swizzle(
tmp
, ZERO, ZERO, ZERO, ZERO), 0, 0);
case OPCODE_POW:
src0 = src_vector(p, &inst->SrcReg[0], program);