diff options
author | Ilia Mirkin <[email protected]> | 2017-07-04 16:02:55 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2017-07-04 18:27:57 -0400 |
commit | 5d9d1df183fa60a11e68d53cb0935a39a6cf3dff (patch) | |
tree | 0959e54441e1f80cf8a1fd30da552dccadca97dd /src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c | |
parent | 02379b68f6106ba04428017c138d9467820be5b6 (diff) |
a5xx: fix clip_halfz support
Signed-off-by: Ilia Mirkin <[email protected]>
Acked-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c')
-rw-r--r-- | src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c b/src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c index 5fd957835fd..9cba83396c7 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c @@ -55,7 +55,6 @@ fd5_rasterizer_state_create(struct pipe_context *pctx, psize_max = cso->point_size; } - so->gras_cl_clip_cntl = 0x80000; /* ??? */ so->gras_su_point_minmax = A5XX_GRAS_SU_POINT_MINMAX_MIN(psize_min) | A5XX_GRAS_SU_POINT_MINMAX_MAX(psize_max); @@ -92,8 +91,8 @@ fd5_rasterizer_state_create(struct pipe_context *pctx, // if (!cso->depth_clip) // so->gras_cl_clip_cntl |= A5XX_GRAS_CL_CLIP_CNTL_ZNEAR_CLIP_DISABLE | // A5XX_GRAS_CL_CLIP_CNTL_ZFAR_CLIP_DISABLE; -// if (cso->clip_halfz) -// so->gras_cl_clip_cntl |= A5XX_GRAS_CL_CLIP_CNTL_ZERO_GB_SCALE_Z; + if (cso->clip_halfz) + so->gras_cl_clip_cntl |= A5XX_GRAS_CL_CNTL_ZERO_GB_SCALE_Z; return so; } |