From 6ca61441b5cea8a2996c1adb4cc300a3c2be3ec9 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Sat, 12 Nov 2011 16:25:22 -0800 Subject: [PATCH] i965 gen6: Turn on transform feedback extension. This patch advertises support for EXT_transform_feedback on Intel Gen6. 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). Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/intel/intel_extensions.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c index 2e2a31f89eb..76954d11b3a 100644 --- a/src/mesa/drivers/dri/intel/intel_extensions.c +++ b/src/mesa/drivers/dri/intel/intel_extensions.c @@ -104,6 +104,9 @@ intelInitExtensions(struct gl_context *ctx) ctx->Const.GLSLVersion = 120; _mesa_override_glsl_version(ctx); + if (intel->gen == 6 && override_version >= 30) + ctx->Extensions.EXT_transform_feedback = true; + if (intel->gen >= 5) ctx->Extensions.EXT_timer_query = true; -- 2.30.2