OSDN Git Service

anv: only expose up to 28 vertex attributes
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 21 Jul 2017 06:32:24 +0000 (08:32 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Wed, 26 Jul 2017 06:16:43 +0000 (08:16 +0200)
commit31f1863ace73d31a579e5c36252a957818ad09cf
tree6f180cd0b1e05b1cda45efaf9f4a1064244d9dfe
parenta848e693efc8e2a1d355dc1076409968b374153f
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" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_private.h