From d0df56ccd182f1236e05e588d67f5c6299736773 Mon Sep 17 00:00:00 2001 From: Elie Tournier Date: Wed, 3 Jun 2020 10:32:47 +0100 Subject: [PATCH] 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: Elie Tournier Reviewed-by: Gert Wollny Reviewed-by: Dave Airlie Part-of: --- src/mesa/state_tracker/st_extensions.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 99ea39cc8a7..e39ee75905e 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -1470,6 +1470,9 @@ void st_init_extensions(struct pipe_screen *screen, 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; -- 2.30.2