<p dir="ltr">I'm looking at these on my phone, so perhaps I missed it - do you ever end up turning them on, or is that left to  later series?</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 1, 2016 12:30 PM, "Kenneth Graunke" <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also update _mesa_has_tessellation to know about the new extensions.<br>
<br>
For now, these are dummy_false, to avoid turning on the extension<br>
until everything's in place.  Eventually, we'll move them over to<br>
the "ARB_tessellation_shader" bit so that any drivers supporting<br>
both the desktop extension and ES 3.1 get the feature.<br>
<br>
Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
 src/mesa/main/context.h          | 7 +++++--<br>
 src/mesa/main/extensions_table.h | 4 ++++<br>
 2 files changed, 9 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h<br>
index 133b17f..1871388 100644<br>
--- a/src/mesa/main/context.h<br>
+++ b/src/mesa/main/context.h<br>
@@ -354,8 +354,11 @@ _mesa_has_shader_subroutine(const struct gl_context *ctx)<br>
 static inline GLboolean<br>
 _mesa_has_tessellation(const struct gl_context *ctx)<br>
 {<br>
-   return ctx->API == API_OPENGL_CORE &&<br>
-          ctx->Extensions.ARB_tessellation_shader;<br>
+   /* _mesa_has_EXT_tessellation_shader(ctx) is redundant with the OES<br>
+    * check, so don't bother calling it.<br>
+    */<br>
+   return _mesa_has_OES_tessellation_shader(ctx) ||<br>
+          _mesa_has_ARB_tessellation_shader(ctx);<br>
 }<br>
<br>
<br>
diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h<br>
index cbb3fb8..a83d9b7 100644<br>
--- a/src/mesa/main/extensions_table.h<br>
+++ b/src/mesa/main/extensions_table.h<br>
@@ -234,6 +234,8 @@ EXT(EXT_shadow_funcs                        , ARB_shadow<br>
 EXT(EXT_stencil_two_side                    , EXT_stencil_two_side                   , GLL,  x ,  x ,  x , 2001)<br>
 EXT(EXT_stencil_wrap                        , dummy_true                             , GLL,  x ,  x ,  x , 2002)<br>
 EXT(EXT_subtexture                          , dummy_true                             , GLL,  x ,  x ,  x , 1995)<br>
+EXT(EXT_tessellation_point_size             , dummy_false                            ,  x ,  x ,  x ,  31, 2013)<br>
+EXT(EXT_tessellation_shader                 , dummy_false                            ,  x ,  x ,  x ,  31, 2013)<br>
 EXT(EXT_texture                             , dummy_true                             , GLL,  x ,  x ,  x , 1996)<br>
 EXT(EXT_texture3D                           , dummy_true                             , GLL,  x ,  x ,  x , 1996)<br>
 EXT(EXT_texture_array                       , EXT_texture_array                      , GLL, GLC,  x ,  x , 2006)<br>
@@ -359,6 +361,8 @@ EXT(OES_stencil4                            , dummy_false<br>
 EXT(OES_stencil8                            , dummy_true                             ,  x ,  x , ES1, ES2, 2005)<br>
 EXT(OES_stencil_wrap                        , dummy_true                             ,  x ,  x , ES1,  x , 2002)<br>
 EXT(OES_surfaceless_context                 , dummy_true                             ,  x ,  x , ES1, ES2, 2012)<br>
+EXT(OES_tessellation_point_size             , dummy_false                            ,  x ,  x ,  x ,  31, 2014)<br>
+EXT(OES_tessellation_shader                 , dummy_false                            ,  x ,  x ,  x ,  31, 2014)<br>
 EXT(OES_texture_3D                          , dummy_true                             ,  x ,  x ,  x , ES2, 2005)<br>
 EXT(OES_texture_border_clamp                , ARB_texture_border_clamp               ,  x ,  x ,  x , ES2, 2014)<br>
 EXT(OES_texture_buffer                      , OES_texture_buffer                     ,  x ,  x ,  x ,  31, 2014)<br>
--<br>
2.9.2<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>