mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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 <marek.olsak@amd.com>
This commit is contained in:
parent
a2d7834457
commit
87f4286137
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue