[Mesa-dev] [PATCH 3/5] i965: expose AMD_vertex_shader_viewport_index on gen7+

Ilia Mirkin imirkin at alum.mit.edu
Wed Jul 2 13:30:54 PDT 2014


Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
 docs/relnotes/10.3.html                      | 1 +
 src/mesa/drivers/dri/i965/intel_extensions.c | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/relnotes/10.3.html b/docs/relnotes/10.3.html
index 9af7210..6090a92 100644
--- a/docs/relnotes/10.3.html
+++ b/docs/relnotes/10.3.html
@@ -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>
 
 
diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c
index 281d6c4..fe40068 100644
--- a/src/mesa/drivers/dri/i965/intel_extensions.c
+++ b/src/mesa/drivers/dri/i965/intel_extensions.c
@@ -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) {
-- 
1.8.5.5



More information about the mesa-dev mailing list