mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
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:
parent
c9340744a3
commit
f95c174927
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue