diff options
author | Ilia Mirkin <[email protected]> | 2015-04-24 21:44:05 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-04-27 20:17:07 -0400 |
commit | f5c110199675b7f4c50d4a7a64b6aac44c55d0a4 (patch) | |
tree | 697275000802f5db035290d1354de5335c62402e /src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c | |
parent | dffc1a0ae3a75d426f10c5d3ba021de977467929 (diff) |
freedreno/a3xx: add support for disabling depth clipping
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c b/src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c index 94f6d6e1f51..9c16804fff5 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_rasterizer.c @@ -97,6 +97,8 @@ fd3_rasterizer_state_create(struct pipe_context *pctx, if (cso->offset_tri) so->gras_su_mode_control |= A3XX_GRAS_SU_MODE_CONTROL_POLY_OFFSET; + if (!cso->depth_clip) + so->gras_cl_clip_cntl |= A3XX_GRAS_CL_CLIP_CNTL_CLIP_DISABLE; return so; } |