zink: export PIPE_CAP_BINDLESS_TEXTURE

this is the 6th descriptor set being bound, so don't even advertise it
if 6 sets can't be bound

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12855>
This commit is contained in:
Mike Blumenkrantz 2021-09-14 09:51:01 -04:00 committed by Marge Bot
parent bc202553e9
commit 6681ad6e17

View file

@ -513,6 +513,11 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_PRIMITIVE_RESTART:
return 1;
case PIPE_CAP_BINDLESS_TEXTURE:
return screen->info.have_EXT_descriptor_indexing &&
/* push, 4 types, bindless */
screen->info.props.limits.maxBoundDescriptorSets >= 6;
case PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT:
return screen->info.props.limits.minTexelBufferOffsetAlignment;