mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
r300: Silence 'mixed declarations and code' warning.
This commit is contained in:
parent
58531029e6
commit
0214b7b3c1
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue