zink: check for extension instead of function

This shouldn't change any behavior, it just seems a bit more to the
point to check for the extension that decides if these are NULL or not
than to check both of them.

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:
Erik Faye-Lund 2021-01-22 09:22:12 +01:00 committed by Marge Bot
parent c9340744a3
commit f95c174927

View file

@ -120,8 +120,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return screen->info.feats.features.multiDrawIndirect;
case PIPE_CAP_MULTI_DRAW_INDIRECT_PARAMS:
return screen->vk_CmdDrawIndirectCount &&
screen->vk_CmdDrawIndexedIndirectCount;
return screen->instance_info.have_KHR_draw_indirect_count;
case PIPE_CAP_START_INSTANCE:
return screen->info.feats11.shaderDrawParameters;