nv50/ir: fix assumption that prog->maxGPR is in 32-bit reg units
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 9 Dec 2015 04:55:18 +0000 (23:55 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 12 Dec 2015 23:10:15 +0000 (18:10 -0500)
commita27548400ea02c39b6602526eb697c673c7d22bb
tree56ee0f1f87238a563c308f7c086e107cbd1fef23
parentd640f179d314abef4d82bf3237197f1278415d36
nv50/ir: fix assumption that prog->maxGPR is in 32-bit reg units

On NV50, we use 16-bit reg units (to make it all work with half-regs). A
few places assumed that it was always in 32-bit units.

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