summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_program.c
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2017-07-21 08:32:24 +0200
committerEmil Velikov <[email protected]>2017-08-03 00:19:06 +0100
commitce731e11465ededae4eb1e61391a3c6c3f1abfbf (patch)
treeec320484694677ee905701103cf61e4ea072af7e /src/gallium/drivers/freedreno/freedreno_program.c
parent4bfe327622eec10f5edcc4a3cdcbcd3e869f9910 (diff)
anv: only expose up to 28 vertex attributes
The EU limit of 128 GRFs should allow 32 vertex elements of 4 GRFs. However, the maximum allowed value of "Vertex URB Entry Read Length" in SIMD8 is 15. And 15 * 8 = 120 gives us a limit of 30 vertex elements. Because we also need to reserve a vertex buffer to upload VertexIndex/InstanceIndex and another to upload DrawID when needed, we can only expose 28. Cc: "17.2" <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> (cherry picked from commit 31f1863ace73d31a579e5c36252a957818ad09cf)
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_program.c')
0 files changed, 0 insertions, 0 deletions