i915g: Always run in sync with the HW
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 5 Aug 2009 23:28:15 +0000 (00:28 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 5 Aug 2009 23:52:13 +0000 (00:52 +0100)
src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c

index ef4d39348a25e10f6030cbdc92e943ebbf748cc7..39032e5ae2e649c84b7165ec39261176a0309840 100644 (file)
@@ -121,6 +121,10 @@ intel_be_batchbuffer_flush(struct intel_be_batchbuffer *batch,
                        debug_printf("\t%08x:    %08x\n", i*4, *ptr);
                }
 
+               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);
        }