<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p><font size="3" color="black" face="Calibri,Helvetica,sans-serif" style="font-family:Calibri,Helvetica,sans-serif,serif,"EmojiFont""><span id="x_x_divtagdefaultwrapper" style="font-size:12pt"></p>
<div style="margin-top:0; margin-bottom:0"><span style="font-size:11pt">Looks good</span><span style="font-size:11pt">.
</span><br>
<span style="font-size:11pt"></span></div>
<span style="font-size:11pt"></span><span style="font-size:11pt"></span>
<div style="margin-top:0; margin-bottom:0"><span style="font-size:11pt">Reviewed-by: Neha Bhende<bhenden@vmware.com></span></div>
<span style="font-size:11pt"></span></span></font>
<p></p>
<p><br>
</p>
<div id="x_Signature"><span style="font-size:11pt"></span>
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<span style="font-size:11pt"></span>
<p><span style="font-size:11pt">Regards,</span></p>
<span style="font-size:11pt"></span>
<p><span style="font-size:11pt">Neha</span><br>
</p>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Brian Paul <brianp@vmware.com><br>
<b>Sent:</b> Monday, July 17, 2017 11:28:43 AM<br>
<b>To:</b> mesa-dev@lists.freedesktop.org<br>
<b>Cc:</b> Charmaine Lee; Neha Bhende<br>
<b>Subject:</b> [PATCH] mesa: fix GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT query</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">This query is not allowed in GL core profile 3.3 and later (since<br>
GL_QUADS and GL_QUAD_STRIP are disallowed).  The query was (mistakenly)<br>
supported in GL 3.2.  This fixes the glGet error test accordingly.<br>
---<br>
 src/mesa/main/get.c              | 12 ++++++++++++<br>
 src/mesa/main/get_hash_params.py |  2 +-<br>
 2 files changed, 13 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c<br>
index 6ad107b..3247653 100644<br>
--- a/src/mesa/main/get.c<br>
+++ b/src/mesa/main/get.c<br>
@@ -162,6 +162,7 @@ enum value_extra {<br>
    EXTRA_EXT_SSBO_GS,<br>
    EXTRA_EXT_FB_NO_ATTACH_GS,<br>
    EXTRA_EXT_ES_GS,<br>
+   EXTRA_EXT_PROVOKING_VERTEX_32,<br>
 };<br>
 <br>
 #define NO_EXTRA NULL<br>
@@ -573,6 +574,12 @@ static const int extra_EXT_shader_framebuffer_fetch[] = {<br>
    EXTRA_END<br>
 };<br>
 <br>
+static const int extra_EXT_provoking_vertex_32[] = {<br>
+   EXTRA_EXT_PROVOKING_VERTEX_32,<br>
+   EXTRA_END<br>
+};<br>
+<br>
+<br>
 /* This is the big table describing all the enums we accept in<br>
  * glGet*v().  The table is partitioned into six parts: enums<br>
  * understood by all GL APIs (OpenGL, GLES and GLES2), enums shared<br>
@@ -1293,6 +1300,11 @@ check_extra(struct gl_context *ctx, const char *func, const struct value_desc *d<br>
          if (_mesa_has_OES_geometry_shader(ctx))<br>
             api_found = GL_TRUE;<br>
          break;<br>
+      case EXTRA_EXT_PROVOKING_VERTEX_32:<br>
+         api_check = TRUE;<br>
+         if (version <= 32)<br>
+            api_found = ctx->Extensions.EXT_provoking_vertex;<br>
+         break;<br>
       case EXTRA_END:<br>
          break;<br>
       default: /* *e is a offset into the extension struct */<br>
diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py<br>
index 850ce7d..9d67ca4 100644<br>
--- a/src/mesa/main/get_hash_params.py<br>
+++ b/src/mesa/main/get_hash_params.py<br>
@@ -888,7 +888,7 @@ descriptor=[<br>
 <br>
 # GL_EXT_provoking_vertex<br>
   [ "PROVOKING_VERTEX_EXT", "CONTEXT_ENUM(Light.ProvokingVertex), extra_EXT_provoking_vertex" ],<br>
-  [ "QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT", "CONTEXT_BOOL(Const.QuadsFollowProvokingVertexConvention), extra_EXT_provoking_vertex" ],<br>
+  [ "QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT", "CONTEXT_BOOL(Const.QuadsFollowProvokingVertexConvention), extra_EXT_provoking_vertex_32" ],<br>
 <br>
 # GL_ARB_seamless_cube_map<br>
   [ "TEXTURE_CUBE_MAP_SEAMLESS", "CONTEXT_BOOL(Texture.CubeMapSeamless), extra_ARB_seamless_cube_map" ],<br>
-- <br>
1.9.1<br>
<br>
</div>
</span></font>
</body>
</html>