summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/context.h7
-rw-r--r--src/mesa/main/extensions_table.h4
2 files changed, 9 insertions, 2 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index 133b17f59b2..187138897be 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -354,8 +354,11 @@ _mesa_has_shader_subroutine(const struct gl_context *ctx)
static inline GLboolean
_mesa_has_tessellation(const struct gl_context *ctx)
{
- return ctx->API == API_OPENGL_CORE &&
- ctx->Extensions.ARB_tessellation_shader;
+ /* _mesa_has_EXT_tessellation_shader(ctx) is redundant with the OES
+ * check, so don't bother calling it.
+ */
+ return _mesa_has_OES_tessellation_shader(ctx) ||
+ _mesa_has_ARB_tessellation_shader(ctx);
}
diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h
index cbb3fb8f56e..a83d9b7ef83 100644
--- a/src/mesa/main/extensions_table.h
+++ b/src/mesa/main/extensions_table.h
@@ -234,6 +234,8 @@ EXT(EXT_shadow_funcs , ARB_shadow
EXT(EXT_stencil_two_side , EXT_stencil_two_side , GLL, x , x , x , 2001)
EXT(EXT_stencil_wrap , dummy_true , GLL, x , x , x , 2002)
EXT(EXT_subtexture , dummy_true , GLL, x , x , x , 1995)
+EXT(EXT_tessellation_point_size , dummy_false , x , x , x , 31, 2013)
+EXT(EXT_tessellation_shader , dummy_false , x , x , x , 31, 2013)
EXT(EXT_texture , dummy_true , GLL, x , x , x , 1996)
EXT(EXT_texture3D , dummy_true , GLL, x , x , x , 1996)
EXT(EXT_texture_array , EXT_texture_array , GLL, GLC, x , x , 2006)
@@ -359,6 +361,8 @@ EXT(OES_stencil4 , dummy_false
EXT(OES_stencil8 , dummy_true , x , x , ES1, ES2, 2005)
EXT(OES_stencil_wrap , dummy_true , x , x , ES1, x , 2002)
EXT(OES_surfaceless_context , dummy_true , x , x , ES1, ES2, 2012)
+EXT(OES_tessellation_point_size , dummy_false , x , x , x , 31, 2014)
+EXT(OES_tessellation_shader , dummy_false , x , x , x , 31, 2014)
EXT(OES_texture_3D , dummy_true , x , x , x , ES2, 2005)
EXT(OES_texture_border_clamp , ARB_texture_border_clamp , x , x , x , ES2, 2014)
EXT(OES_texture_buffer , OES_texture_buffer , x , x , x , 31, 2014)