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

Author: Jakob Bornecrantz <[email protected]>
Date:   Thu Sep  3 19:30:36 2009 +0100

i915g: Don't run in sync with HW

---

 .../winsys/drm/intel/gem/intel_drm_batchbuffer.c   |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/gallium/winsys/drm/intel/gem/intel_drm_batchbuffer.c 
b/src/gallium/winsys/drm/intel/gem/intel_drm_batchbuffer.c
index 77b3fec..5c3e66f 100644
--- a/src/gallium/winsys/drm/intel/gem/intel_drm_batchbuffer.c
+++ b/src/gallium/winsys/drm/intel/gem/intel_drm_batchbuffer.c
@@ -12,6 +12,8 @@
 #define INTEL_BATCH_NO_CLIPRECTS 0x1
 #define INTEL_BATCH_CLIPRECTS    0x2
 
+#undef INTEL_RUN_SYNC
+
 struct intel_drm_batchbuffer
 {
    struct intel_batchbuffer base;
@@ -172,19 +174,20 @@ intel_drm_batchbuffer_flush(struct intel_batchbuffer 
*ibatch,
 
       drm_intel_bo_unmap(batch->bo);
    } else {
-      /* TODO figgure out why the gpu hangs if we don't run sync */
+#ifdef INTEL_RUN_SYNC
       drm_intel_bo_map(batch->bo, FALSE);
       drm_intel_bo_unmap(batch->bo);
+#endif
    }
 
    if (fence) {
       ibatch->iws->fence_reference(ibatch->iws, fence, NULL);
 
-#if 0
-      (*fence) = intel_drm_fence_create(batch->bo);
-#else
+#ifdef INTEL_RUN_SYNC
       /* we run synced to GPU so just pass null */
       (*fence) = intel_drm_fence_create(NULL);
+#else
+      (*fence) = intel_drm_fence_create(batch->bo);
 #endif
    }
 

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

Reply via email to