[Mesa-dev] [PATCH 6/8] i965 gen6: Turn on transform feedback extension.
Paul Berry
stereotype441 at gmail.com
Tue Dec 13 15:35:19 PST 2011
This patch advertises support for EXT_transform_feedback on Intel Gen6
and higher.
Since transform feedback support is not completely finished yet, for
now we only advertise support for it when MESA_GL_VERSION_OVERRIDE is
3.0 or greater (since transform feedback is required by GL version
3.0).
---
src/mesa/drivers/dri/intel/intel_extensions.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index 681f5f2..41ae29e 100644
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -98,10 +98,13 @@ intelInitExtensions(struct gl_context *ctx)
ctx->Extensions.OES_EGL_image = true;
#endif
- if (intel->gen >= 6)
+ if (intel->gen >= 6) {
ctx->Const.GLSLVersion = 130;
- else
+ if (override_version >= 30)
+ ctx->Extensions.EXT_transform_feedback = true;
+ } else {
ctx->Const.GLSLVersion = 120;
+ }
_mesa_override_glsl_version(ctx);
if (intel->gen >= 5)
--
1.7.6.4
More information about the mesa-dev
mailing list