diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2015-06-04 17:00:17 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2015-06-06 13:26:10 -0700 |
commit | 7b8f20ec5505a25958bcd98aabe73a7ca2b6cbba (patch) | |
tree | c399b0bd6e0ff32b57425d6198514e7399161790 /docs/relnotes/10.5.7.html | |
parent | 52e5ad7bf8c731280ca4506b7d38e8c7a8e734b9 (diff) | |
download | external_mesa3d-7b8f20ec5505a25958bcd98aabe73a7ca2b6cbba.zip external_mesa3d-7b8f20ec5505a25958bcd98aabe73a7ca2b6cbba.tar.gz external_mesa3d-7b8f20ec5505a25958bcd98aabe73a7ca2b6cbba.tar.bz2 |
prog_to_nir: Fix fragment depth writes.
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 for driver backends, this patch makes
prog_to_nir use a scalar output variable for FRAG_RESULT_DEPTH,
moving result.depth.z into the first component.
Fixes Glean's fragProg1 "Z-write test" subtest.
Cc: mesa-stable@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90000
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'docs/relnotes/10.5.7.html')
0 files changed, 0 insertions, 0 deletions