summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/drm
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2009-08-06 00:28:15 +0100
committerJakob Bornecrantz <jakob@vmware.com>2009-08-06 00:52:13 +0100
commitb6c9401f138720adaebde90ec7b1805eae441fc7 (patch)
treeac9c8095404bfcabef7b1ec1a105f4f78d137257 /src/gallium/winsys/drm
parent901b87547e50fae25722fdf5dee216d809a0d453 (diff)
i915g: Always run in sync with the HW
Diffstat (limited to 'src/gallium/winsys/drm')
-rw-r--r--src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c4
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 ef4d39348a..39032e5ae2 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);