gpu : add gcvFLUSH_ALL at gckVIDMEM_Unlock to avoid gpu hang.
author杜坤明 <dkm@rockchip.com>
Sun, 8 Jan 2012 02:23:27 +0000 (10:23 +0800)
committer杜坤明 <dkm@rockchip.com>
Sun, 8 Jan 2012 02:23:27 +0000 (10:23 +0800)
drivers/staging/rk29/vivante/hal/kernel/gc_hal_kernel_video_memory.c

index 2b0617a41a460505fd8bbba1bf864374f50a8a1c..623ce372c4511d3fe1b76e2858172cee8ee34797 100755 (executable)
@@ -1686,7 +1686,7 @@ gckVIDMEM_Unlock(
                     flush = (gceKERNEL_FLUSH) 0;
                 }
 
-                flush = flush | gcvFLUSH_2D;    // dkm : add to avoid the gpu hang
+                flush = gcvFLUSH_ALL;    // dkm : add to avoid the gpu hang
 
                 gcmkONERROR(
                     gckHARDWARE_Flush(hardware, flush, gcvNULL, &requested));