zink: export PIPE_CAP_BINDLESS_TEXTURE
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 14 Sep 2021 13:51:01 +0000 (09:51 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Sep 2021 01:40:54 +0000 (01:40 +0000)
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>

src/gallium/drivers/zink/zink_screen.c

index 77eaf56..ba0e941 100644 (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;