[Nouveau] [PATCH 11/19] nv50: GP_REG_ALLOC_RESULT must be positive
Ilia Mirkin
imirkin at alum.mit.edu
Mon Jan 13 11:19:27 PST 2014
Set max_out to 1 when there are no outputs.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/nv50/nv50_program.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_program.c b/src/gallium/drivers/nouveau/nv50/nv50_program.c
index f46f240..813795f 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_program.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_program.c
@@ -118,6 +118,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;
--
1.8.3.2
More information about the Nouveau
mailing list