From b6c9401f138720adaebde90ec7b1805eae441fc7 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 6 Aug 2009 00:28:15 +0100 Subject: [PATCH] i915g: Always run in sync with the HW --- src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ef4d39348a2..39032e5ae2e 100644 --- a/src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c +++ b/src/gallium/winsys/drm/intel/gem/intel_be_batchbuffer.c @@ -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); } -- 2.30.2