nv50: fix emit_add_a16 to emit correct source reg
emit_add_a16 was using the incorrect source. This caused adds in the form of: add u16 $a0 s32 $a1 u32 0x00000200 to have a source AREG of $a0 instead of $a1. Fixes World of Warcraft in OpenGL and D3D without GLSL.
This commit is contained in:
committed by
Christoph Bumiller
parent
4609e80288
commit
828b26b7eb
@@ -744,8 +744,8 @@ emit_add_a16(struct nv_pc *pc, struct nv_instruction *i)
|
||||
|
||||
set_pred(pc, i);
|
||||
|
||||
if (i->src[1])
|
||||
set_a16_bits(pc, SREG(i->src[1])->id + 1);
|
||||
if (s && i->src[0])
|
||||
set_a16_bits(pc, SREG(i->src[0])->id);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user