Commit d0df56cc authored by Elie Tournier's avatar Elie Tournier Committed by Marge Bot

st: expose KHR_blend_equation_advanced if PIPE_CAP_BLEND_EQUATION_ADVANCED

With virgl, we want to expose KHR_blend_equation_advanced even if EXT_shader_framebuffer_fetch
is not available.
Signed-off-by: default avatarElie Tournier <elie.tournier@collabora.com>
Reviewed-by: Gert Wollny's avatarGert Wollny <gert.wollny@collabora.com>
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Part-of: <!5516>
parent 377731ec
...@@ -1470,6 +1470,9 @@ void st_init_extensions(struct pipe_screen *screen, ...@@ -1470,6 +1470,9 @@ void st_init_extensions(struct pipe_screen *screen,
bool coherent_fb_fetch = bool coherent_fb_fetch =
screen->get_param(screen, PIPE_CAP_FBFETCH_COHERENT); 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) { if (max_fb_fetch_rts > 0) {
extensions->KHR_blend_equation_advanced = true; extensions->KHR_blend_equation_advanced = true;
extensions->KHR_blend_equation_advanced_coherent = coherent_fb_fetch; extensions->KHR_blend_equation_advanced_coherent = coherent_fb_fetch;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment