OSDN Git Service

nv30: don't assert when running out of registers
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 22 May 2016 22:21:55 +0000 (18:21 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 23 May 2016 02:57:18 +0000 (22:57 -0400)
commit74e71cbfcb2950d0aa59e5b05ab817e93dfad4ee
treea5e4641b459245ee6014c740d39ff6a71c79bd80
parent36ff09cdfe20e11bb5c350aa05a76972da869f2a
nv30: don't assert when running out of registers

This happens with dEQP tests. The code doesn't at all protect against
this condition, so while unhandled, this is an expected situation.

Also avoid using more than the first 16 registers for nv3x vertex
programs.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c
src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c