nv50/ir: return a register when retrieving thread id sysval
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 12 Feb 2017 01:23:30 +0000 (20:23 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 12 Feb 2017 01:25:26 +0000 (20:25 -0500)
commit399e267f0e633df41eb1922f7c5f0958a40d6a52
tree0bb14b7367e427babae0bb932fef263a9318592b
parent0d1edb01ec677148c393f4f76de2a2c181594e6a
nv50/ir: return a register when retrieving thread id sysval

We have logic to short-circuit such retrievals to zero. However "zero"
was an immediate, and some logic expected to get registers (to later be
propagated). Fix this by using loadImm.

Fixes GL45-CTS.gpu_shader5.images_array_indexing

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp