diff options
author | Elie Tournier <[email protected]> | 2020-06-03 10:32:47 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-17 06:19:16 +0000 |
commit | d0df56ccd182f1236e05e588d67f5c6299736773 (patch) | |
tree | 17e56f5e9e826d333d3b4f90078960ef960dcfa4 | |
parent | 377731ec1bb84e103eff587e00c938deef929cba (diff) |
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 <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |