With virgl, we want to expose KHR_blend_equation_advanced even if EXT_shader_framebuffer_fetch
is not available.
Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
bool coherent_fb_fetch =
screen->get_param(screen, PIPE_CAP_FBFETCH_COHERENT);
+ if (screen->get_param(screen, PIPE_CAP_BLEND_EQUATION_ADVANCED))
+ extensions->KHR_blend_equation_advanced = true;
+
if (max_fb_fetch_rts > 0) {
extensions->KHR_blend_equation_advanced = true;
extensions->KHR_blend_equation_advanced_coherent = coherent_fb_fetch;