summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2004-12-22 19:31:10 +0000
committerKeith Whitwell <[email protected]>2004-12-22 19:31:10 +0000
commit15da29b5e74a92437b9dc95590a9289e33e0a9a6 (patch)
treee006f601e134eecb1122431a7b2873073d3e03eb /src/mesa/drivers/dri
parent7db50bb3a893ba0ec0ec2fe1ec54a07ff6472435 (diff)
Fix merge error.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/unichrome/via_ioctl.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_ioctl.c b/src/mesa/drivers/dri/unichrome/via_ioctl.c
index 8f6768542c1..fc1b0327d93 100644
--- a/src/mesa/drivers/dri/unichrome/via_ioctl.c
+++ b/src/mesa/drivers/dri/unichrome/via_ioctl.c
@@ -1068,60 +1068,5 @@ int flush_sys(viaContextPtr vmesa, drm_via_flush_sys_t* buf)
}
-#if 0
- /*=* John Sheng [2003.6.20] debug pci *=*/
-#if 0
- if (VIA_DEBUG) {
- GLuint *pnEngBase = (GLuint *)((GLuint)pnMMIOBase + 0x400);
- int nStatus;
- int i = 0;
-
- while (1) {
- nStatus = *pnEngBase;
- if ((nStatus & 0xFFFEFFFF) == 0x00020000) {
- break;
- }
- else {
- GLuint j;
- GLuint *data;
- GLuint k;
- GLuint *ES;
-
- data = (GLuint *)vmesa->dmaAddr;
- ES = pnEngBase;
-
- if (i == 500000) {
- for (k =0 ; k < 35; k++) {
- fprintf(stderr, "%02xh - %02xh\n", k*4 + 3, k*4);
- fprintf(stderr, "%08x\n", *ES);
- ES++;
- }
- fprintf(stderr, "current command buffer");
- fprintf(stderr, "i = %d\n", i);
- for (j = 0; j < vmesa->dmaLow; j += 16) {
- fprintf(stderr, "%08x ", *data++);
- fprintf(stderr, "%08x ", *data++);
- fprintf(stderr, "%08x ", *data++);
- fprintf(stderr, "%08x\n", *data++);
- }
- }
- data = (GLuint *)vmesa->dma;
- if (i == 500000) {
- fprintf(stderr, "previous command buffer");
- fprintf(stderr, "i = %d\n", i);
- for (j = 0; j < dmaLow; j += 16) {
- fprintf(stderr, "%08x ", *data++);
- fprintf(stderr, "%08x ", *data++);
- fprintf(stderr, "%08x ", *data++);
- fprintf(stderr, "%08x\n", *data++);
- }
- }
- }
- i++;
- }
- }
- dmaLow = vmesa->dmaLow;
-#endif
-
return 0;
}