freedreno/a6xx: Fix clip_halfz support.
authorEric Anholt <eric@anholt.net>
Wed, 10 Jun 2020 18:28:03 +0000 (11:28 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 23:37:32 +0000 (23:37 +0000)
Same bit as on other gens, apparently it just got missed on this one.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5419>

.gitlab-ci/deqp-freedreno-a630-fails.txt
src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c

index 22ffe17093be00721e8f105fccbd0f1636b55387..30ec504bb9ad285fd566430303f3bed2b83133ca 100644 (file)
@@ -1,5 +1,4 @@
 dEQP-GLES2.functional.clipping.triangle_vertex.clip_three.clip_neg_x_neg_z_and_pos_x_pos_z_and_neg_x_neg_y_pos_z
-dEQP-GLES2.functional.clip_control.depth_mode_zero_to_one
 dEQP-GLES31.functional.stencil_texturing.render.depth24_stencil8_clear
 dEQP-GLES31.functional.stencil_texturing.render.depth24_stencil8_draw
 dEQP-VK.compute.indirect_dispatch.upload_buffer.multiple_groups
index 2225ea0b2eb0b94c422dc9355e39669899be372a..91ac776480e9ac5b90adcbc5d824185ec05b4b56 100644 (file)
@@ -52,7 +52,10 @@ __fd6_setup_rasterizer_stateobj(struct fd_context *ctx,
        }
 
        OUT_REG(ring,
-               A6XX_GRAS_CL_CNTL(.vp_clip_code_ignore = 1),
+               A6XX_GRAS_CL_CNTL(
+                       .vp_clip_code_ignore = 1,
+                       .zero_gb_scale_z = cso->clip_halfz
+                       ),
                A6XX_GRAS_UNKNOWN_8001());
 
        OUT_REG(ring,