gallium/u_threaded_context: Use PIPE_MAX_SHADER_SAMPLER_VIEWS for sampler_buffers
authorJason Ekstrand <jason.ekstrand@collabora.com>
Mon, 18 Apr 2022 17:03:35 +0000 (12:03 -0500)
committerJason Ekstrand <jason.ekstrand@collabora.com>
Tue, 10 May 2022 16:23:16 +0000 (11:23 -0500)
commit620c5e9dd05c57c253fa1e56218e88fe7bd23d86
tree4f49d91088f7880ca2e1480b9750c071c069b75b
parentaea935264a66fce07aee076b1987efc3606ad620
gallium/u_threaded_context: Use PIPE_MAX_SHADER_SAMPLER_VIEWS for sampler_buffers

Sampler views and samplers may not be the same limit; in fact one is 32
while the other is 128.  The sampler_buffers field is tracking sampler
views (yes, naming is confusing) so we should use the right limit.

Fixes: e9c41b321488 ("gallium/u_threaded: add buffer lists - tracking of buffers referenced by tc")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15988>
src/gallium/auxiliary/util/u_threaded_context.h