Module: Mesa
Branch: master
Commit: b6c9401f138720adaebde90ec7b1805eae441fc7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b6c9401f138720adaebde90ec7b1805eae441fc7

Author: Jakob Bornecrantz <[email protected]>
Date:   Thu Aug  6 00:28:15 2009 +0100

i915g: Always run in sync with the HW

---

 .../winsys/drm/intel/gem/intel_be_batchbuffer.c    |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c 
b/src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c
index ef4d393..39032e5 100644
--- a/src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c
+++ b/src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c
@@ -122,6 +122,10 @@ intel_be_batchbuffer_flush(struct intel_be_batchbuffer 
*batch,
                }
 
                drm_intel_bo_unmap(batch->bo);
+       } else {
+               /* TODO figgure out why the gpu hangs if we don't run sync */
+               drm_intel_bo_map(batch->bo, FALSE);
+               drm_intel_bo_unmap(batch->bo);
        }
 
        intel_be_batchbuffer_reset(batch);

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to