aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_reg.h
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-10-24 10:36:12 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-12-03 00:11:21 -0500
commit87a326a38589e1c919af5f86a59cd571ff0aa831 (patch)
treec8e829f79f4f20bc876d73ba7c3d545b15d12ee0 /drivers/gpu/drm/nouveau/nouveau_reg.h
parenta5cf68b04b2b8ea716cf6fd8499c1c54d05fdf5e (diff)
drm/nv20: Add Z compression support.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Tested-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_reg.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_reg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_reg.h b/drivers/gpu/drm/nouveau/nouveau_reg.h
index b6384d36d5d0..df3a87e792f2 100644
--- a/drivers/gpu/drm/nouveau/nouveau_reg.h
+++ b/drivers/gpu/drm/nouveau/nouveau_reg.h
@@ -45,6 +45,11 @@
45# define NV04_PFB_REF_CMD_REFRESH (1 << 0) 45# define NV04_PFB_REF_CMD_REFRESH (1 << 0)
46#define NV04_PFB_PRE 0x001002d4 46#define NV04_PFB_PRE 0x001002d4
47# define NV04_PFB_PRE_CMD_PRECHARGE (1 << 0) 47# define NV04_PFB_PRE_CMD_PRECHARGE (1 << 0)
48#define NV20_PFB_ZCOMP(i) (0x00100300 + 4*(i))
49# define NV20_PFB_ZCOMP_MODE_32 (4 << 24)
50# define NV20_PFB_ZCOMP_EN (1 << 31)
51# define NV25_PFB_ZCOMP_MODE_16 (1 << 20)
52# define NV25_PFB_ZCOMP_MODE_32 (2 << 20)
48#define NV10_PFB_CLOSE_PAGE2 0x0010033c 53#define NV10_PFB_CLOSE_PAGE2 0x0010033c
49#define NV04_PFB_SCRAMBLE(i) (0x00100400 + 4 * (i)) 54#define NV04_PFB_SCRAMBLE(i) (0x00100400 + 4 * (i))
50#define NV40_PFB_TILE(i) (0x00100600 + (i*16)) 55#define NV40_PFB_TILE(i) (0x00100600 + (i*16))
@@ -379,6 +384,7 @@
379#define NV20_PGRAPH_TLIMIT(i) (0x00400904 + (i*16)) 384#define NV20_PGRAPH_TLIMIT(i) (0x00400904 + (i*16))
380#define NV20_PGRAPH_TSIZE(i) (0x00400908 + (i*16)) 385#define NV20_PGRAPH_TSIZE(i) (0x00400908 + (i*16))
381#define NV20_PGRAPH_TSTATUS(i) (0x0040090C + (i*16)) 386#define NV20_PGRAPH_TSTATUS(i) (0x0040090C + (i*16))
387#define NV20_PGRAPH_ZCOMP(i) (0x00400980 + 4*(i))
382#define NV10_PGRAPH_TILE(i) (0x00400B00 + (i*16)) 388#define NV10_PGRAPH_TILE(i) (0x00400B00 + (i*16))
383#define NV10_PGRAPH_TLIMIT(i) (0x00400B04 + (i*16)) 389#define NV10_PGRAPH_TLIMIT(i) (0x00400B04 + (i*16))
384#define NV10_PGRAPH_TSIZE(i) (0x00400B08 + (i*16)) 390#define NV10_PGRAPH_TSIZE(i) (0x00400B08 + (i*16))