gpu_neon: flush queues on upper level too
authornotaz <notasas@gmail.com>
Thu, 29 Dec 2011 15:00:29 +0000 (17:00 +0200)
committernotaz <notasas@gmail.com>
Thu, 29 Dec 2011 15:00:29 +0000 (17:00 +0200)
plugins/gpu_neon/gpu.c

index 24f731e..4b18106 100644 (file)
@@ -272,8 +272,10 @@ static void start_vram_transfer(uint32_t pos_word, uint32_t size_word, int is_re
 
   if (is_read)
     gpu.status.img = 1;
-  else
+  else {
+    renderer_flush_queues();
     renderer_invalidate_caches(gpu.dma.x, gpu.dma.y, gpu.dma.w, gpu.dma.h);
+  }
 
   log_io("start_vram_transfer %c (%d, %d) %dx%d\n", is_read ? 'r' : 'w',
     gpu.dma.x, gpu.dma.y, gpu.dma.w, gpu.dma.h);