mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
r300: fix address register handling in NQSSADCE
For address register we always use X component
This commit is contained in:
parent
db40bb0287
commit
b129c55f42
1 changed files with 7 additions and 5 deletions
|
|
@ -117,13 +117,15 @@ static struct prog_instruction* track_used_srcreg(struct nqssadce_state* s,
|
|||
|
||||
struct register_state *regstate;
|
||||
|
||||
if (inst->SrcReg[src].RelAddr)
|
||||
if (inst->SrcReg[src].RelAddr) {
|
||||
regstate = get_reg_state(s, PROGRAM_ADDRESS, 0);
|
||||
else
|
||||
if (regstate)
|
||||
regstate->Sourced |= WRITEMASK_X;
|
||||
} else {
|
||||
regstate = get_reg_state(s, inst->SrcReg[src].File, inst->SrcReg[src].Index);
|
||||
|
||||
if (regstate)
|
||||
regstate->Sourced |= deswz_source & 0xf;
|
||||
if (regstate)
|
||||
regstate->Sourced |= deswz_source & 0xf;
|
||||
}
|
||||
|
||||
return inst;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue