summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-01-11 23:26:03 -0500
committerMaarten Lankhorst <[email protected]>2014-01-27 16:40:42 +0100
commit58589f6c6d02f6a8b2fe4a049779129064faf2c0 (patch)
tree11d69968413a8fa77290f5ed6288cf4b56f5972e /src
parent006095b38af8ce80c678941d3fbe9b9509067c3a (diff)
nv50: GP_REG_ALLOC_RESULT must be positive
Set max_out to 1 when there are no outputs. Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nouveau/nv50/nv50_program.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_program.c b/src/gallium/drivers/nouveau/nv50/nv50_program.c
index 27d899a4beb..6dc3bbce1ed 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_program.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_program.c
@@ -122,6 +122,8 @@ nv50_vertprog_assign_slots(struct nv50_ir_prog_info *info)
}
prog->out_nr = info->numOutputs;
prog->max_out = n;
+ if (!prog->max_out)
+ prog->max_out = 1;
if (prog->vp.psiz < info->numOutputs)
prog->vp.psiz = prog->out[prog->vp.psiz].hw;