diff options
author | Kenneth Graunke <[email protected]> | 2019-04-24 13:08:57 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-05-23 08:13:09 -0700 |
commit | 87f42861372cdb3f82ba36b13467b157d8328ef5 (patch) | |
tree | 298d9475e09965f13f8d463caf8b5d3317726f7a /src/mesa/state_tracker | |
parent | a2d783445791363d56d7365ef50f4748840220a2 (diff) |
st/mesa: Advertise GL_EXT_shader_framebuffer_fetch_non_coherent
This extension requires the ability to read from all render targets,
so we only enable it if PIPE_CAP_FBFETCH >= PIPE_CAP_MAX_RENDER_TARGETS.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 98a3490d4df..f442c08293b 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -1398,6 +1398,11 @@ void st_init_extensions(struct pipe_screen *screen, if (max_fb_fetch_rts > 0) { extensions->KHR_blend_equation_advanced = true; + + if (max_fb_fetch_rts >= + screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS)) { + extensions->EXT_shader_framebuffer_fetch_non_coherent = true; + } } consts->MaxViewports = screen->get_param(screen, PIPE_CAP_MAX_VIEWPORTS); |