diff options
author | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-04-08 17:24:33 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-04-08 17:24:33 +0200 |
commit | 1d43a8b25513866d67b5b16ae1945d6e9d95743d (patch) | |
tree | 6bb0d0a238e5b8f522992629ac110ec798fb036f /src/gallium/winsys/dri/intel/intel_batchbuffer.c | |
parent | 2dd6022e65972b0706011734b68da4e9177b05c3 (diff) |
i915: Fixed fence related problems
Diffstat (limited to 'src/gallium/winsys/dri/intel/intel_batchbuffer.c')
-rw-r--r-- | src/gallium/winsys/dri/intel/intel_batchbuffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/winsys/dri/intel/intel_batchbuffer.c b/src/gallium/winsys/dri/intel/intel_batchbuffer.c index 05223bf700..3a8ff5a4eb 100644 --- a/src/gallium/winsys/dri/intel/intel_batchbuffer.c +++ b/src/gallium/winsys/dri/intel/intel_batchbuffer.c @@ -386,8 +386,10 @@ intel_batchbuffer_flush(struct intel_batchbuffer *batch) GLboolean was_locked = intel->locked; struct _DriFenceObject *fence; - if (used == 0) + if (used == 0) { + driFenceReference(batch->last_fence); return batch->last_fence; + } /* Add the MI_BATCH_BUFFER_END. Always add an MI_FLUSH - this is a * performance drain that we would like to avoid. |