From: Eric Anholt Date: Wed, 10 Jun 2020 18:28:03 +0000 (-0700) Subject: freedreno/a6xx: Fix clip_halfz support. X-Git-Tag: upstream/21.0.0~8844 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5e993af47f3dc1f9dfec07547dd7ef614bd51dd;p=platform%2Fupstream%2Fmesa.git freedreno/a6xx: Fix clip_halfz support. Same bit as on other gens, apparently it just got missed on this one. Part-of: --- diff --git a/.gitlab-ci/deqp-freedreno-a630-fails.txt b/.gitlab-ci/deqp-freedreno-a630-fails.txt index 22ffe17..30ec504 100644 --- a/.gitlab-ci/deqp-freedreno-a630-fails.txt +++ b/.gitlab-ci/deqp-freedreno-a630-fails.txt @@ -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 diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c b/src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c index 2225ea0..91ac776 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c @@ -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,