summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-07-08 11:48:15 -0700
committerKenneth Graunke <[email protected]>2016-08-08 09:59:03 -0700
commitc8438b62b71f4e2bd3801e936143c439a68c4bd2 (patch)
tree102cef3061f5fda93f954d9d88bbb67fdd97504c /src/mesa/main/context.h
parent73554c47e0795a8f15a351b80498c60cf22b2535 (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]>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r--src/mesa/main/context.h7
1 files changed, 5 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);
}