Fix merge error.
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 22 Dec 2004 19:31:10 +0000 (19:31 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 22 Dec 2004 19:31:10 +0000 (19:31 +0000)
src/mesa/drivers/dri/unichrome/via_ioctl.c

index 8f6768542c1d26240e957b97f11303db775aecaf..fc1b0327d932bccd023d383d10c2e3f092d6fd88 100644 (file)
@@ -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;
 }