r300: Use reg definition when available & add missing reg definition.
This commit is contained in:
committed by
Jerome Glisse
parent
ad3f2107ed
commit
0d2a68fc61
@@ -228,7 +228,7 @@ static void r300EmitClearState(GLcontext * ctx)
|
||||
e32(0);
|
||||
|
||||
R300_STATECHANGE(r300, unk221C);
|
||||
reg_start(0x221C, 0);
|
||||
reg_start(R300_VAP_UNKNOWN_221C, 0);
|
||||
e32(R300_221C_CLEAR);
|
||||
|
||||
R300_STATECHANGE(r300, ps);
|
||||
|
||||
@@ -63,6 +63,12 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#define R300_SE_VPORT_ZOFFSET 0x1DAC
|
||||
|
||||
|
||||
/*
|
||||
* Vertex Array Processing (VAP) Control
|
||||
* Stolen from r200 code from Christoph Brill (It's a guess!)
|
||||
*/
|
||||
#define R300_VAP_CNTL 0x2080
|
||||
|
||||
/* This register is written directly and also starts data section
|
||||
* in many 3d CP_PACKET3's
|
||||
*/
|
||||
@@ -135,7 +141,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
/* gap */
|
||||
|
||||
#define R300_VAP_CNTL 0x2140
|
||||
#define R300_VAP_CNTL_STATUS 0x2140
|
||||
# define R300_VC_NO_SWAP (0 << 0)
|
||||
# define R300_VC_16BIT_SWAP (1 << 0)
|
||||
# define R300_VC_32BIT_SWAP (2 << 0)
|
||||
|
||||
@@ -283,7 +283,7 @@ static void emit_lin_cp(r300ContextPtr rmesa, unsigned long dst, unsigned long s
|
||||
size -= cp_size;
|
||||
}
|
||||
|
||||
reg_start(0x4e4c,0);
|
||||
reg_start(R300_RB3D_DSTCACHE_CTLSTAT,0);
|
||||
e32(0x0000000a);
|
||||
|
||||
reg_start(0x342c,0);
|
||||
|
||||
Reference in New Issue
Block a user