[Mesa-dev] [PATCH 4/5] i965: Enable the ARB_transform_feedback3 extension on Gen7+.

Kenneth Graunke kenneth at whitecape.org
Sat Oct 26 22:33:28 CEST 2013

This extension is written a bit strangely.  Although it introduces the
concept of multiple transform feedback streams, it doesn't actually
provide more than a single stream.

The ARB_gpu_shader5 extension is what introduces the ability to write to
streams other than stream #0 and increases the required number of streams.

Since we don't yet support ARB_gpu_shader5, we can safely enable
ARB_transform_feedback3 even though we only support a single stream.
This does provide some useful functionality: applications can now use
more than one interleaved transform feedback buffer.

I believe this extension can be enabled independently from
ARB_transform_feedback2, so I've enabled it universally on Gen7+.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
 src/mesa/drivers/dri/i965/intel_extensions.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c
index 0c6ed02..e08d93a 100644
--- a/src/mesa/drivers/dri/i965/intel_extensions.c
+++ b/src/mesa/drivers/dri/i965/intel_extensions.c
@@ -230,6 +230,7 @@ intelInitExtensions(struct gl_context *ctx)
       ctx->Extensions.ARB_conservative_depth = true;
       if (can_do_pipelined_register_writes(brw))
          ctx->Extensions.ARB_transform_feedback2 = true;
+      ctx->Extensions.ARB_transform_feedback3 = true;
    if (ctx->API == API_OPENGL_CORE)

More information about the mesa-dev mailing list