diff options
author | Kenneth Graunke <[email protected]> | 2016-07-08 11:48:15 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-08-08 09:59:03 -0700 |
commit | c8438b62b71f4e2bd3801e936143c439a68c4bd2 (patch) | |
tree | 102cef3061f5fda93f954d9d88bbb67fdd97504c | |
parent | 73554c47e0795a8f15a351b80498c60cf22b2535 (diff) |
mesa: Add {OES,EXT}_tessellation_shader to the extensions table.
Also update _mesa_has_tessellation to know about the new extensions.
For now, these are dummy_false, to avoid turning on the extension
until everything's in place. Eventually, we'll move them over to
the "ARB_tessellation_shader" bit so that any drivers supporting
both the desktop extension and ES 3.1 get the feature.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r-- | src/mesa/main/context.h | 7 | ||||
-rw-r--r-- | src/mesa/main/extensions_table.h | 4 |
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) |