Mesa (master): i915g: Always run in sync with the HW
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Wed Aug 5 22:47:50 UTC 2009
Module: Mesa
Branch: master
Commit: b6c9401f138720adaebde90ec7b1805eae441fc7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b6c9401f138720adaebde90ec7b1805eae441fc7
Author: Jakob Bornecrantz <jakob at vmware.com>
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);
More information about the mesa-commit
mailing list