[Mesa-dev] [PATCH 00/12] ARB_fragment_layer_viewport for i965

Kenneth Graunke kenneth at whitecape.org
Sat Jan 25 00:29:19 PST 2014


On 01/24/2014 10:51 PM, Chris Forbes wrote:
> This series adds support for ARB_fragment_layer_viewport on i965 Gen7, in
> core contexts [the same conditions as for ARB_viewport_array being exposed].
> 
> This is another tiny piece of GL4.3, allowing the GS- [or with
> AMD_vertex_shader_*, VS- ] written values of gl_Layer and gl_ViewportIndex
> to be read by the fragment shader.
> 
> Note that there are a few oddities in the spec, which I've assumed hopefully
> reasonable corrections for:
> 
> - Dependencies section specifies that ARB_geometry_shader4 is required, but
>   should probably be 'geometry shaders are required', or perhaps 'GL 3.2 or
>   ARB_geometry_shader4 is required'.
> - In the description of gl_Layer's behavior, there is a stray reference to
>   `gl_Value` which should be `gl_Layer`.
> - The extension doesn't list a new define for shaders to test for presence.
>   I've assumed the usual pattern in 6/12.

From reading the code and spec, this looks good.  Series is:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

But...are there Piglit tests for this?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140125/bdcb561c/attachment.pgp>


More information about the mesa-dev mailing list