diff options
author | Oliver McFadden <z3ro.geek@gmail.com> | 2007-03-13 06:25:04 +0000 |
---|---|---|
committer | Oliver McFadden <z3ro.geek@gmail.com> | 2007-03-13 06:25:04 +0000 |
commit | a90c2854a7a71953e03d36b1ff7db3e9c2babb99 (patch) | |
tree | 08e0a90371f8f92e16c2d96f8b6c4e22a5ea85f4 /shared-core | |
parent | 90f8c691a57a79a6a9652b7d2a01c59acc127b3f (diff) |
Add defines for the values written to R300_RB3D_ZCACHE_CTLSTAT.
Note that just like the values written to R300_RB3D_DSTCACHE_CTLSTAT these
values are really unknown; ideally more reverse engineering should be done to
determine what these values mean and when they should be set.
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/r300_cmdbuf.c | 2 | ||||
-rw-r--r-- | shared-core/r300_reg.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/shared-core/r300_cmdbuf.c b/shared-core/r300_cmdbuf.c index e62cbda5..815b9f86 100644 --- a/shared-core/r300_cmdbuf.c +++ b/shared-core/r300_cmdbuf.c @@ -694,7 +694,7 @@ static __inline__ void r300_pacify(drm_radeon_private_t *dev_priv) OUT_RING(CP_PACKET0(R300_RB3D_DSTCACHE_CTLSTAT, 0)); OUT_RING(R300_RB3D_DSTCACHE_0A); OUT_RING(CP_PACKET0(R300_RB3D_ZCACHE_CTLSTAT, 0)); - OUT_RING(0x3); + OUT_RING(R300_RB3D_ZCACHE_CTLSTAT_03); OUT_RING(CP_PACKET3(RADEON_CP_NOP, 0)); OUT_RING(0x0); ADVANCE_RING(); diff --git a/shared-core/r300_reg.h b/shared-core/r300_reg.h index 667fe05a..5115b086 100644 --- a/shared-core/r300_reg.h +++ b/shared-core/r300_reg.h @@ -1395,6 +1395,8 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. /* gap */ #define R300_RB3D_ZCACHE_CTLSTAT 0x4F18 /* GUESS */ +# define R300_RB3D_ZCACHE_CTLSTAT_01 0x1 +# define R300_RB3D_ZCACHE_CTLSTAT_03 0x3 /* gap */ |