<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 3:00 PM, Chad Versace <span dir="ltr"><<a href="mailto:chad.versace@intel.com" target="_blank">chad.versace@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri 30 Oct 2015, Nanley Chery wrote:<br>
> From: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
><br>
> Make API context and version checks done by the helper functions pass<br>
> unconditionally while meta is in progress. This transparently makes<br>
> extension checks solely dependent on struct gl_extensions while in meta.<br>
><br>
> v2. Use 8-bit wide datatype instead GLuint.<br>
><br>
> Signed-off-by: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
> ---<br>
> src/mesa/drivers/common/meta.c | 11 +++++++++++<br>
> src/mesa/drivers/common/meta.h | 1 +<br>
> src/mesa/main/extensions.h | 2 +-<br>
> src/mesa/main/mtypes.h | 6 ++++++<br>
> src/mesa/main/version.c | 1 +<br>
> 5 files changed, 20 insertions(+), 1 deletion(-)<br>
<br>
<br>
</span><span class="">> diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h<br>
> index 10e1586..15964dc 100644<br>
> --- a/src/mesa/main/mtypes.h<br>
> +++ b/src/mesa/main/mtypes.h<br>
> @@ -3802,6 +3802,12 @@ struct gl_extensions<br>
> const GLubyte *String;<br>
> /** Number of supported extensions */<br>
> GLuint Count;<br>
> + /**<br>
> + * The context version which extension helper functions compare against.<br>
> + * By default, the value is equal to ctx->Version. This changes to ~0,<br>
</span> ^^^^<br>
Hanging comma. Was that intentional?<br>
<span class=""><br></span></blockquote><div><br></div><div>That was not intentional. I've fixed it locally. Thanks.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> + * while meta is in progress.<br>
> + */<br>
> + GLubyte Version;<br>
> };<br>
<br>
</span>I approve of this slick version hack for meta.<br>
<br>
With or without the hanging comma, this patch is<br>
Reviewed-by: Chad Versace <<a href="mailto:chad.versace@intel.com">chad.versace@intel.com</a>><br>
<br>
I'm done with review today. I'll resume tomorrow.<br>
</blockquote></div><br></div></div>