mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
r300/compiler: Move declaration before code.
Fixes this GCC warning on linux-x86 build. radeon_rename_regs.c: In function ‘rc_rename_regs’: radeon_rename_regs.c:112: warning: ISO C90 forbids mixed declarations and code
This commit is contained in:
parent
0d0273142a
commit
dafbf480db
1 changed files with 3 additions and 2 deletions
|
|
@ -104,13 +104,14 @@ void rc_rename_regs(struct radeon_compiler *c, void *user)
|
|||
inst != &c->Program.Instructions;
|
||||
inst = inst->Next) {
|
||||
const struct rc_opcode_info * info;
|
||||
unsigned int old_index, temp_index;
|
||||
struct rc_dst_register * dst;
|
||||
if(inst->Type != RC_INSTRUCTION_NORMAL) {
|
||||
rc_error(c, "%s only works with normal instructions.",
|
||||
__FUNCTION__);
|
||||
return;
|
||||
}
|
||||
unsigned int old_index, temp_index;
|
||||
struct rc_dst_register * dst = &inst->U.I.DstReg;
|
||||
dst = &inst->U.I.DstReg;
|
||||
info = rc_get_opcode_info(inst->U.I.Opcode);
|
||||
if(!info->HasDstReg || dst->File != RC_FILE_TEMPORARY) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue