summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-08-18 20:12:29 -0400
committerIlia Mirkin <[email protected]>2016-08-19 19:40:04 -0400
commitcd8e30452f6d308a0c5e5668d6bba63f01895f1f (patch)
tree5627d23a970d88bfa78e5f3d8bb6e1806bc25c92 /src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
parent5adee83806f764d60c629027dc0ee38cef3cb87a (diff)
a4xx: only disable depth clipping, not all clipping, when requested
The previous bit disables the whole clipper, including the regular viewport-related clipping that would go on. The two new bits disable near and far clipping (separately, as verified with the depth-clamp-range piglit). Signed-off-by: Ilia Mirkin <[email protected]> Cc: [email protected]
Diffstat (limited to 'src/gallium/drivers/freedreno/a4xx/a4xx.xml.h')
-rw-r--r--src/gallium/drivers/freedreno/a4xx/a4xx.xml.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h b/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
index d9a7bb5e4d9..a90a4ce90b1 100644
--- a/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
+++ b/src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
@@ -3145,6 +3145,8 @@ static inline uint32_t A4XX_TPL1_TP_TEX_COUNT_GS(uint32_t val)
#define REG_A4XX_GRAS_CL_CLIP_CNTL 0x00002000
#define A4XX_GRAS_CL_CLIP_CNTL_CLIP_DISABLE 0x00008000
+#define A4XX_GRAS_CL_CLIP_CNTL_ZNEAR_CLIP_DISABLE 0x00010000
+#define A4XX_GRAS_CL_CLIP_CNTL_ZFAR_CLIP_DISABLE 0x00020000
#define A4XX_GRAS_CL_CLIP_CNTL_ZERO_GB_SCALE_Z 0x00400000
#define REG_A4XX_GRAS_CLEAR_CNTL 0x00002003