zink: expose demote when supported

This enables GL_EXT_demote_to_helper_invocation on Zink.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18272>
This commit is contained in:
Erik Faye-Lund 2022-08-26 13:12:11 +02:00 committed by Marge Bot
parent 1a271948fc
commit 9909eff0c8

View file

@ -577,6 +577,10 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
if (screen->info.have_EXT_shader_subgroup_ballot)
return true;
return false;
case PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION:
return screen->info.have_EXT_shader_demote_to_helper_invocation;
case PIPE_CAP_SAMPLE_SHADING:
return screen->info.feats.features.sampleRateShading;