Re: [Mesa-dev] [PATCH] prog_to_nir: Fix fragment depth writes.

2015-06-04 Thread Matt Turner
On Thu, Jun 4, 2015 at 10:01 PM, Kenneth Graunke wrote: > In the ARB_fragment_program specification, the result.depth output > variable is treated as a vec4, where the fragment depth is stored in the > .z component, and the other three components are undefined. > > This is different than GLSL, whi

[Mesa-dev] [PATCH] prog_to_nir: Fix fragment depth writes.

2015-06-04 Thread Kenneth Graunke
In the ARB_fragment_program specification, the result.depth output variable is treated as a vec4, where the fragment depth is stored in the .z component, and the other three components are undefined. This is different than GLSL, which uses a scalar value (gl_FragDepth). To make this consistent fo