Mesa (main): mesa: OpenGL 1.4 feature GL_EXT_blend_func_separate is not optional
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jan 21 22:37:29 UTC 2022
Module: Mesa
Branch: main
Commit: d45cb3b440dcb3ca4b0b56cc362793921369229c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d45cb3b440dcb3ca4b0b56cc362793921369229c
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Tue Dec 14 17:45:24 2021 -0800
mesa: OpenGL 1.4 feature GL_EXT_blend_func_separate is not optional
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14213>
---
src/mesa/main/consts_exts.h | 1 -
src/mesa/main/extensions.c | 1 -
src/mesa/main/extensions_table.h | 6 +++---
src/mesa/main/version.c | 4 +---
4 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/src/mesa/main/consts_exts.h b/src/mesa/main/consts_exts.h
index 5d29f7ae13d..94bde184b3e 100644
--- a/src/mesa/main/consts_exts.h
+++ b/src/mesa/main/consts_exts.h
@@ -162,7 +162,6 @@ struct gl_extensions
GLboolean ARB_vertex_type_2_10_10_10_rev;
GLboolean ARB_viewport_array;
GLboolean EXT_blend_equation_separate;
- GLboolean EXT_blend_func_separate;
GLboolean EXT_blend_minmax;
GLboolean EXT_demote_to_helper_invocation;
GLboolean EXT_depth_bounds_test;
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index fb56d1ffed4..11291cb1853 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -281,7 +281,6 @@ _mesa_init_extensions(struct gl_extensions *extensions)
extensions->ARB_vertex_program = GL_TRUE;
extensions->ARB_vertex_shader = GL_TRUE;
- extensions->EXT_blend_func_separate = GL_TRUE;
extensions->EXT_blend_minmax = GL_TRUE;
extensions->EXT_EGL_image_storage = GL_TRUE;
extensions->EXT_gpu_program_parameters = GL_TRUE;
diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h
index f228322bded..4d9416b09d9 100644
--- a/src/mesa/main/extensions_table.h
+++ b/src/mesa/main/extensions_table.h
@@ -217,7 +217,7 @@ EXT(EXT_bgra , dummy_true
EXT(EXT_blend_color , dummy_true , GLL, x , x , x , 1995)
EXT(EXT_blend_equation_separate , EXT_blend_equation_separate , GLL, GLC, x , x , 2003)
EXT(EXT_blend_func_extended , ARB_blend_func_extended , x , x , x , ES2, 2015)
-EXT(EXT_blend_func_separate , EXT_blend_func_separate , GLL, x , x , x , 1999)
+EXT(EXT_blend_func_separate , dummy_true , GLL, x , x , x , 1999)
EXT(EXT_blend_minmax , EXT_blend_minmax , GLL, x , ES1, ES2, 1995)
EXT(EXT_blend_subtract , dummy_true , GLL, x , x , x , 1995)
EXT(EXT_buffer_storage , ARB_buffer_storage , x , x , x , 31, 2015)
@@ -351,7 +351,7 @@ EXT(IBM_multimode_draw_arrays , dummy_true
EXT(IBM_rasterpos_clip , dummy_true , GLL, x , x , x , 1996)
EXT(IBM_texture_mirrored_repeat , dummy_true , GLL, x , x , x , 1998)
-EXT(INGR_blend_func_separate , EXT_blend_func_separate , GLL, x , x , x , 1999)
+EXT(INGR_blend_func_separate , dummy_true , GLL, x , x , x , 1999)
EXT(INTEL_blackhole_render , INTEL_blackhole_render , 30, 30, x , ES2, 2018)
EXT(INTEL_conservative_rasterization , INTEL_conservative_rasterization , x , GLC, x , 31, 2013)
@@ -424,7 +424,7 @@ EXT(OES_EGL_image_external , OES_EGL_image_external
EXT(OES_EGL_image_external_essl3 , OES_EGL_image_external , x , x , x , 30, 2015)
EXT(OES_EGL_sync , dummy_true , x , x , ES1, ES2, 2010)
EXT(OES_blend_equation_separate , EXT_blend_equation_separate , x , x , ES1, x , 2009)
-EXT(OES_blend_func_separate , EXT_blend_func_separate , x , x , ES1, x , 2009)
+EXT(OES_blend_func_separate , dummy_true , x , x , ES1, x , 2009)
EXT(OES_blend_subtract , dummy_true , x , x , ES1, x , 2009)
EXT(OES_byte_coordinates , dummy_true , x , x , ES1, x , 2002)
EXT(OES_compressed_ETC1_RGB8_texture , OES_compressed_ETC1_RGB8_texture , x , x , ES1, ES2, 2005)
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 261dd02efde..e042de4ad0a 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -252,7 +252,6 @@ compute_version(const struct gl_extensions *extensions,
GLuint major, minor, version;
const bool ver_1_4 = (extensions->ARB_shadow &&
- extensions->EXT_blend_func_separate &&
extensions->EXT_blend_minmax &&
extensions->EXT_point_parameters);
const bool ver_1_5 = (ver_1_4 &&
@@ -496,8 +495,7 @@ compute_version_es2(const struct gl_extensions *extensions,
const struct gl_constants *consts)
{
/* OpenGL ES 2.0 is derived from OpenGL 2.0 */
- const bool ver_2_0 = (extensions->EXT_blend_func_separate &&
- extensions->EXT_blend_minmax &&
+ const bool ver_2_0 = (extensions->EXT_blend_minmax &&
extensions->ARB_vertex_shader &&
extensions->ARB_fragment_shader &&
extensions->ARB_texture_non_power_of_two &&
More information about the mesa-commit
mailing list