mesa/st: enable ARB_fragment_layer_viewport
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 23 Jun 2014 13:32:59 +0000 (09:32 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 3 Jul 2014 00:20:53 +0000 (20:20 -0400)
If multiple viewports are supported, that implies the presence of a GS
and layered rendering, so we can enable ARB_fragment_layer_viewport as
well.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
docs/GL3.txt
docs/relnotes/10.3.html
src/mesa/state_tracker/st_extensions.c

index 8ef4947213fc7df7bd0bc48d044c5f2b65170d60..296e14cdf227c45f47c8902c588522ecbc0d82ae 100644 (file)
@@ -161,7 +161,7 @@ GL 4.3:
   GL_ARB_copy_image                                    not started
   GL_KHR_debug                                         DONE (all drivers)
   GL_ARB_explicit_uniform_location                     DONE (all drivers that support GLSL)
-  GL_ARB_fragment_layer_viewport                       not started
+  GL_ARB_fragment_layer_viewport                       DONE (nv50, nvc0, r600)
   GL_ARB_framebuffer_no_attachments                    not started
   GL_ARB_internalformat_query2                         not started
   GL_ARB_invalidate_subdata                            DONE (all drivers)
index 47d2c5fff863002a6e8ef6ea1a3ff0742fba783d..9af7210ed26a54e50f5f61c8243ad062b4041d26 100644 (file)
@@ -54,6 +54,7 @@ Note: some of the new features are only available with certain drivers.
 <li>GL_ARB_texture_query_lod on radeonsi</li>
 <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>
 </ul>
 
 
index bfad04fc9b3f5601e522c3e7c8017897429d0a23..982413568a412cdb1008232e88aad4b894468a22 100644 (file)
@@ -815,6 +815,7 @@ void st_init_extensions(struct st_context *st)
          ctx->Const.ViewportBounds.Min = -16384.0;
          ctx->Const.ViewportBounds.Max = 16384.0;
          ctx->Extensions.ARB_viewport_array = GL_TRUE;
+         ctx->Extensions.ARB_fragment_layer_viewport = GL_TRUE;
       }
    }
    if (ctx->Const.MaxProgramTextureGatherComponents > 0)