On 14 December 2011 02:51, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 12/13/2011 03:35 PM, Paul Berry wrote:<br>
> This patch advertises support for EXT_transform_feedback on Intel Gen6<br>
> and higher.<br>
><br>
> Since transform feedback support is not completely finished yet, for<br>
> now we only advertise support for it when MESA_GL_VERSION_OVERRIDE is<br>
> 3.0 or greater (since transform feedback is required by GL version<br>
> 3.0).<br>
> ---<br>
> src/mesa/drivers/dri/intel/intel_extensions.c | 7 +++++--<br>
> 1 files changed, 5 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c<br>
> index 681f5f2..41ae29e 100644<br>
> --- a/src/mesa/drivers/dri/intel/intel_extensions.c<br>
> +++ b/src/mesa/drivers/dri/intel/intel_extensions.c<br>
> @@ -98,10 +98,13 @@ intelInitExtensions(struct gl_context *ctx)<br>
> ctx->Extensions.OES_EGL_image = true;<br>
> #endif<br>
><br>
> - if (intel->gen >= 6)<br>
> + if (intel->gen >= 6) {<br>
> ctx->Const.GLSLVersion = 130;<br>
> - else<br>
> + if (override_version >= 30)<br>
> + ctx->Extensions.EXT_transform_feedback = true;<br>
> + } else {<br>
> ctx->Const.GLSLVersion = 120;<br>
> + }<br>
> _mesa_override_glsl_version(ctx);<br>
><br>
> if (intel->gen >= 5)<br>
<br>
</div></div>I'd go ahead and add a new (intel->gen >= 6) block after<br>
_mesa_override_glsl_version. That way this block can be solely for<br>
determining the GLSL version.<br>
</blockquote></div><br>That seems sensible. In fact, since we haven't started transform feedback work for gen7, I'll condition the new block on (intel->gen == 6 && override_version >= 30) for now, so that those of us with gen7 prototypes get less confusing output from our piglit runs.<br>
<br>With that change, can I take this as a "reviewed-by"?<br>