diff options
author | Jonathan Marek <[email protected]> | 2020-03-23 21:33:36 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-24 13:01:44 +0000 |
commit | afe27d5345f3addf770a2dee3f74c42f9ab93ae9 (patch) | |
tree | c4833cc78295e706d94061541501403009636dfd | |
parent | 07a8100aed64c64dee5966c5560f299d866bd0c9 (diff) |
turnip: fix znear clipping
Vulkan clips znear at 0 instead of -1.
Fixes dEQP-VK.draw.inverted_depth_ranges.nodepthclamp_*
Signed-off-by: Jonathan Marek <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4293>
-rw-r--r-- | src/freedreno/vulkan/tu_pipeline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c index 3d25428fe82..1604bec0e1b 100644 --- a/src/freedreno/vulkan/tu_pipeline.c +++ b/src/freedreno/vulkan/tu_pipeline.c @@ -1343,7 +1343,8 @@ static void tu6_emit_gras_unknowns(struct tu_cs *cs) { tu_cs_emit_pkt4(cs, REG_A6XX_GRAS_CL_CNTL, 1); - tu_cs_emit(cs, A6XX_GRAS_CL_CNTL_VP_CLIP_CODE_IGNORE); + tu_cs_emit(cs, A6XX_GRAS_CL_CNTL_ZERO_GB_SCALE_Z | + A6XX_GRAS_CL_CNTL_VP_CLIP_CODE_IGNORE); tu_cs_emit_pkt4(cs, REG_A6XX_GRAS_UNKNOWN_8001, 1); tu_cs_emit(cs, 0x0); tu_cs_emit_pkt4(cs, REG_A6XX_GRAS_LAYER_CNTL, 1); |