diff options
author | Kenneth Graunke <[email protected]> | 2019-04-24 13:17:54 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-05-23 08:13:09 -0700 |
commit | cca8af0c7d56890d070f7fd60acc169f641e0051 (patch) | |
tree | d9f9195c275c8982c21a7453e0bff5a271ecb7c0 /src/mesa | |
parent | 87f42861372cdb3f82ba36b13467b157d8328ef5 (diff) |
gallium: Add PIPE_CAP_FBFETCH_COHERENT and expose extensions
st/mesa now exposes KHR_blend_equation_advanced_coherent and
EXT_shader_framebuffer_fetch if the new capability is supported.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index f442c08293b..3d5b0fa5836 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -1395,13 +1395,17 @@ void st_init_extensions(struct pipe_screen *screen, } unsigned max_fb_fetch_rts = screen->get_param(screen, PIPE_CAP_FBFETCH); + bool coherent_fb_fetch = + screen->get_param(screen, PIPE_CAP_FBFETCH_COHERENT); if (max_fb_fetch_rts > 0) { extensions->KHR_blend_equation_advanced = true; + extensions->KHR_blend_equation_advanced_coherent = coherent_fb_fetch; if (max_fb_fetch_rts >= screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS)) { extensions->EXT_shader_framebuffer_fetch_non_coherent = true; + extensions->EXT_shader_framebuffer_fetch = coherent_fb_fetch; } } |