clover: use max shader sampler view/images queries for clover.

This is probably sane than my last answer to this question

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13398>
This commit is contained in:
Dave Airlie 2021-10-19 06:40:24 +10:00 committed by Marge Bot
parent dfd0f5dbfd
commit cae1ef0a11
1 changed files with 4 additions and 2 deletions

View File

@ -221,12 +221,14 @@ device::vendor_id() const {
size_t
device::max_images_read() const {
return PIPE_MAX_SHADER_SAMPLER_VIEWS;
return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE,
PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS);
}
size_t
device::max_images_write() const {
return PIPE_MAX_SHADER_IMAGES;
return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE,
PIPE_SHADER_CAP_MAX_SHADER_IMAGES);
}
size_t