From: Francisco Jerez Date: Wed, 20 Jul 2016 00:40:05 +0000 (-0700) Subject: mesa: Add extension enables for framebuffer fetch extensions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=115a27357c4d991d8064452d0179493aef528e3e;p=mesa.git mesa: Add extension enables for framebuffer fetch extensions. This allows drivers to expose EXT_shader_framebuffer_fetch in GLES2+ contexts if desired. Note that this adds boolean flags for two MESA extensions, but only the EXT GLES-only extension is exposed for the moment, see the cover letter of this series [1] for the rationale. [1] https://lists.freedesktop.org/archives/mesa-dev/2016-July/124028.html Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h index a83d9b7ef83..ee4f1afe39d 100644 --- a/src/mesa/main/extensions_table.h +++ b/src/mesa/main/extensions_table.h @@ -227,6 +227,7 @@ EXT(EXT_rescale_normal , dummy_true EXT(EXT_secondary_color , dummy_true , GLL, x , x , x , 1999) EXT(EXT_separate_shader_objects , dummy_true , x , x , x , ES2, 2013) EXT(EXT_separate_specular_color , dummy_true , GLL, x , x , x , 1997) +EXT(EXT_shader_framebuffer_fetch , MESA_shader_framebuffer_fetch , x , x , x , ES2, 2013) EXT(EXT_shader_integer_mix , EXT_shader_integer_mix , GLL, GLC, x , 30, 2013) EXT(EXT_shader_io_blocks , OES_shader_io_blocks , x , x , x , 31, 2014) EXT(EXT_shader_samples_identical , EXT_shader_samples_identical , GLL, GLC, x , 31, 2015) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 10f52349c91..965de5dc8b4 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3946,6 +3946,8 @@ struct gl_extensions GLboolean KHR_texture_compression_astc_ldr; GLboolean KHR_texture_compression_astc_sliced_3d; GLboolean MESA_pack_invert; + GLboolean MESA_shader_framebuffer_fetch; + GLboolean MESA_shader_framebuffer_fetch_non_coherent; GLboolean MESA_shader_integer_functions; GLboolean MESA_ycbcr_texture; GLboolean NV_conditional_render;