mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
nv50: GP_REG_ALLOC_RESULT must be positive
Set max_out to 1 when there are no outputs. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
006095b38a
commit
58589f6c6d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue