From c9340744a3c6310f0f36c6c5576ea1bc87b65f03 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 22 Jan 2021 09:15:10 +0100 Subject: [PATCH] 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: cef876910a0 ("zink: enable PIPE_CAP_MULTI_DRAW_INDIRECT(_PARAMS) caps") Reviewed-by: Hoe Hao Cheng Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/drivers/zink/zink_screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index e7afeecbb5c..121251e1719 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -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;