nv50/ir: float(s32 & 0xff) = float(u8), not s8
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 29 Dec 2015 20:05:34 +0000 (15:05 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 29 Dec 2015 20:08:20 +0000 (15:08 -0500)
commit724134f68322087ef88bc590febd0011167ae367
tree1f3dd7c718190a9d71c7ae8e2eb9b1638b12386e
parent581f81860e7409a60c869f76e503cbb865dd68b9
nv50/ir: float(s32 & 0xff) = float(u8), not s8

Make sure to make conversion unsigned when we're ANDing the high bits
away. Fixes corruption in dolphin.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp