diff options
author | Eric Anholt <[email protected]> | 2020-06-10 11:28:03 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-10 23:37:32 +0000 |
commit | d5e993af47f3dc1f9dfec07547dd7ef614bd51dd (patch) | |
tree | 5cbcb899ed7e385bdb9e604982fc4146618fd226 /src | |
parent | af3c2f3cfd81186b0041e5297db5225fc788b04e (diff) |
freedreno/a6xx: Fix clip_halfz support.
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c b/src/gallium/drivers/freedreno/a6xx/fd6_rasterizer.c index 2225ea0b2eb..91ac776480e 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, |