diff options
author | Oliver McFadden <z3ro.geek@gmail.com> | 2007-03-13 00:50:05 +0000 |
---|---|---|
committer | Oliver McFadden <z3ro.geek@gmail.com> | 2007-03-13 00:50:05 +0000 |
commit | 5667396e05723afc5a626e1ba0384e29a240dea3 (patch) | |
tree | 1ab0f3b1816dd0ec501936866cf4400281827165 /shared-core | |
parent | 0cd5c650d1bb36e0ba6b40abd1da1459d1a767f0 (diff) |
Guess another unknown register used for R300 pacification.
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/r300_cmdbuf.c | 4 | ||||
-rw-r--r-- | shared-core/r300_reg.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/shared-core/r300_cmdbuf.c b/shared-core/r300_cmdbuf.c index 0c04b5f8..aa8b80e5 100644 --- a/shared-core/r300_cmdbuf.c +++ b/shared-core/r300_cmdbuf.c @@ -224,7 +224,7 @@ void r300_init_reg_flags(void) ADD_RANGE(R300_TX_BORDER_COLOR_0, 16); /* Sporadic registers used as primitives are emitted */ - ADD_RANGE(0x4f18, 1); + ADD_RANGE(R300_RB3D_ZCACHE_CTLSTAT, 1); ADD_RANGE(R300_RB3D_DSTCACHE_CTLSTAT, 1); ADD_RANGE(R300_VAP_INPUT_ROUTE_0_0, 8); ADD_RANGE(R300_VAP_INPUT_ROUTE_1_0, 8); @@ -693,7 +693,7 @@ static __inline__ void r300_pacify(drm_radeon_private_t *dev_priv) BEGIN_RING(6); OUT_RING(CP_PACKET0(R300_RB3D_DSTCACHE_CTLSTAT, 0)); OUT_RING(0xa); - OUT_RING(CP_PACKET0(0x4f18, 0)); + OUT_RING(CP_PACKET0(R300_RB3D_ZCACHE_CTLSTAT, 0)); OUT_RING(0x3); OUT_RING(CP_PACKET3(RADEON_CP_NOP, 0)); OUT_RING(0x0); diff --git a/shared-core/r300_reg.h b/shared-core/r300_reg.h index 69bc994c..667fe05a 100644 --- a/shared-core/r300_reg.h +++ b/shared-core/r300_reg.h @@ -1394,6 +1394,10 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. /* gap */ +#define R300_RB3D_ZCACHE_CTLSTAT 0x4F18 /* GUESS */ + +/* gap */ + #define R300_RB3D_DEPTHOFFSET 0x4F20 #define R300_RB3D_DEPTHPITCH 0x4F24 # define R300_DEPTHPITCH_MASK 0x00001FF8 /* GUESS */ |