Fixed MAXFIFO_S4. Removed WAIT_IDLE_EMPTY from savage_BCI_swap which resulted
authorFelix Kuehling <fxkuehl@gmx.de>
Sat, 20 Mar 2004 19:40:09 +0000 (19:40 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Sat, 20 Mar 2004 19:40:09 +0000 (19:40 +0000)
in another small speedup. Fixed a problem that was masked by that
WAIT_IDLE_EMPTY:
- flush command buffer and WAIT_IDLE_EMPTY before uploading textures

src/mesa/drivers/dri/savage/savageioctl.c
src/mesa/drivers/dri/savage/savagetex.c

index 5eff31be1461623075e0778f44ff1baeabd8fdc3..94db5ab3d2b237a5f42e8d6f0cdbadaf623b9687 100644 (file)
@@ -175,7 +175,6 @@ static void savage_BCI_swap(savageContextPtr imesa)
     if (nbox > SAVAGE_NR_SAREA_CLIPRECTS)
         nbox = SAVAGE_NR_SAREA_CLIPRECTS;
     savageDMAFlush (imesa);
-    WAIT_IDLE_EMPTY;
     
     if(imesa->IsFullScreen)
     { /* full screen*/
@@ -426,7 +425,7 @@ static void savageDDFinish( GLcontext *ctx  )
 
 #define ALT_STATUS_WORD0 (* (volatile GLuint *)(imesa->MMIO_BASE+0x48c60))
 #define STATUS_WORD0 (* (volatile GLuint *)(imesa->MMIO_BASE+0x48c00))
-#define MAXFIFO_S4 0x1FF00
+#define MAXFIFO_S4  0x7F00
 #define MAXFIFO_S3D 0x7F00
 
 static GLboolean savagePagePending_s4( savageContextPtr imesa ) {
index 488d838f9d927c9d9b7e2d177789ca20a28c466c..15a33dac7ad40b8567de38afd4664560f97fb2e2 100644 (file)
@@ -791,6 +791,8 @@ int savageUploadTexImages( savageContextPtr imesa, savageTextureObjectPtr t )
    savageUpdateTexLRU( imesa, t );
 
    if (t->dirty_images) {
+      FLUSH_BATCH( imesa );
+      WAIT_IDLE_EMPTY;
       if (SAVAGE_DEBUG & DEBUG_VERBOSE_LRU)
         fprintf(stderr, "*");