zink: clamp PIPE_SHADER_CAP_MAX_SHADER_BUFFERS to PIPE_MAX_SHADER_BUFFERS
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 2 Jul 2020 19:41:51 +0000 (15:41 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 Aug 2020 14:22:39 +0000 (14:22 +0000)
commit99b44536bf2335989cad6ef33d148115fd4316cf
tree4d35658f179f2c1e7de974088d57a8f7ed4eae08
parent01d6220cffb806e82a089c8d3d727f206c63be5b
zink: clamp PIPE_SHADER_CAP_MAX_SHADER_BUFFERS to PIPE_MAX_SHADER_BUFFERS

this value gets split between ssbos and abos, so clamping to 8 here causes
a number of tests to fail just because there's not enough buffers available

other gallium drivers return 32 here, so this seems pretty safe

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5913>
src/gallium/drivers/zink/zink_screen.c