nv50/ir: fix threads calculation for non-compute shaders
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 11 Jul 2017 00:58:31 +0000 (20:58 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 13 Jul 2017 02:09:59 +0000 (22:09 -0400)
commit3645268748c44825ce8d37bf03f684731eb2652a
tree3330b7774bd89d77179a79414d40ac2a245b5e53
parent87028f863967ec88ef8b7c5722f6cbf7ac6c8db6
nv50/ir: fix threads calculation for non-compute shaders

We were using the "cp" union fields, which are only valid for compute
shaders. The threads calculation affects the available GPRs, so just
pick a small number for other shader types to avoid limiting available
registers.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/codegen/nv50_ir_target.h