zink: respect feature-cap for multi-draw indirect
Even in the presence of VK_KHR_draw_indirect_count, we still technically
need to respect the feature-cap when using a Vk 1.0 core-function.
Fixes: cef876910a
("zink: enable PIPE_CAP_MULTI_DRAW_INDIRECT(_PARAMS) caps")
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8640>
This commit is contained in:

committed by
Marge Bot

parent
6f6941e2dd
commit
c9340744a3
@@ -117,6 +117,8 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
||||
return screen->info.feats.features.robustBufferAccess;
|
||||
|
||||
case PIPE_CAP_MULTI_DRAW_INDIRECT:
|
||||
return screen->info.feats.features.multiDrawIndirect;
|
||||
|
||||
case PIPE_CAP_MULTI_DRAW_INDIRECT_PARAMS:
|
||||
return screen->vk_CmdDrawIndirectCount &&
|
||||
screen->vk_CmdDrawIndexedIndirectCount;
|
||||
|
Reference in New Issue
Block a user