mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
bc202553e9
commit
6681ad6e17
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue