mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
nv50: handle VP without inputs
This commit is contained in:
parent
c19672f90a
commit
ecc7e5e85b
1 changed files with 11 additions and 0 deletions
|
|
@ -68,6 +68,17 @@ nv50_vertprog_assign_slots(struct nv50_ir_prog_info *info)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Corner case: VP has no inputs, but we will still need to submit data to
|
||||
* draw it. HW will shout at us and won't draw anything if we don't enable
|
||||
* any input, so let's just pretend it's the first one.
|
||||
*/
|
||||
if (prog->vp.attrs[0] == 0 &&
|
||||
prog->vp.attrs[1] == 0 &&
|
||||
prog->vp.attrs[2] == 0)
|
||||
prog->vp.attrs[0] |= 0xf;
|
||||
|
||||
/* VertexID before InstanceID */
|
||||
if (info->io.vertexId < info->numSysVals)
|
||||
info->sv[info->io.vertexId].slot[0] = n++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue