i965: expose AMD_vertex_shader_viewport_index on gen7+
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 2 Jul 2014 19:49:39 +0000 (15:49 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 3 Jul 2014 01:59:41 +0000 (21:59 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
docs/relnotes/10.3.html
src/mesa/drivers/dri/i965/intel_extensions.c

index 9af7210ed26a54e50f5f61c8243ad062b4041d26..6090a921912a648b3d0f657b156f999c50fd5502 100644 (file)
@@ -55,6 +55,7 @@ Note: some of the new features are only available with certain drivers.
 <li>GL_ARB_viewport_array on nvc0</li>
 <li>GL_ARB_seamless_cubemap_per_texture on i965, llvmpipe, nvc0, r600, radeonsi, softpipe</li>
 <li>GL_ARB_fragment_layer_viewport on nv50, nvc0, llvmpipe, r600</li>
+<li>GL_AMD_vertex_shader_viewport_index on i965/gen7+</li>
 </ul>
 
 
index 281d6c4b3f9315795ba35f2701dab8f8940ef7b6..fe4006882d2394d2257bfeffb27fed7c0e80ceeb 100644 (file)
@@ -297,8 +297,10 @@ intelInitExtensions(struct gl_context *ctx)
       /* Only enable this in core profile because other parts of Mesa behave
        * slightly differently when the extension is enabled.
        */
-      if (ctx->API == API_OPENGL_CORE)
+      if (ctx->API == API_OPENGL_CORE) {
          ctx->Extensions.ARB_viewport_array = true;
+         ctx->Extensions.AMD_vertex_shader_viewport_index = true;
+      }
    }
 
    if (brw->gen >= 8) {