tu: Fix the advertised maxFragmentInputComponents
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 20 Apr 2020 11:41:42 +0000 (13:41 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Apr 2020 10:04:13 +0000 (10:04 +0000)
commitae169f38cead48a669d39fcd4ab7747da56e19c2
tree524e610894042a175946e472c63e189ba15f255f
parent45ec9c0f3de7795c1cb910718749ad828368ca8a
tu: Fix the advertised maxFragmentInputComponents

This appears to be limited by VPC_CNTL_0::NUMNONPOSVAR, which is an
8-bit bitfield with no possibility for expansion. Also, in practice
we'll be limited by the vertex shader output maximum, which includes
gl_Position, of 128, so that users won't be able to use more than 124
components anyways. Lower it to match the GL blob.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4641>
src/freedreno/vulkan/tu_device.c