projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5853102
)
r300: Silence 'mixed declarations and code' warning.
author
Vinson Lee
<vlee@vmware.com>
Mon, 4 Jan 2010 04:16:59 +0000
(20:16 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Mon, 4 Jan 2010 04:16:59 +0000
(20:16 -0800)
src/mesa/drivers/dri/r300/compiler/radeon_code.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/compiler/radeon_code.c
b/src/mesa/drivers/dri/r300/compiler/radeon_code.c
index 1a3d8bb641284352fc86217d9221370352670c20..853b2becd1b6b63d070e109e21b4423fdb3f1592 100644
(file)
--- a/
src/mesa/drivers/dri/r300/compiler/radeon_code.c
+++ b/
src/mesa/drivers/dri/r300/compiler/radeon_code.c
@@
-143,7
+143,8
@@
unsigned rc_constants_add_immediate_scalar(struct rc_constant_list * c, float da
for(index = 0; index < c->Count; ++index) {
if (c->Constants[index].Type == RC_CONSTANT_IMMEDIATE) {
- for(unsigned comp = 0; comp < c->Constants[index].Size; ++comp) {
+ unsigned comp;
+ for(comp = 0; comp < c->Constants[index].Size; ++comp) {
if (c->Constants[index].u.Immediate[comp] == data) {
*swizzle = RC_MAKE_SWIZZLE(comp, comp, comp, comp);
return index;