summaryrefslogtreecommitdiff
path: root/src/i830_batchbuffer.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-06-15 12:48:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-06-17 14:08:11 +0100
commit0e0101758438debf98f989d815989b45e78cf5f6 (patch)
tree03dfe959978b113b9015c4ab462e33fc79865378 /src/i830_batchbuffer.c
parent2ff7a2fc9d939554502e9adec89cae5597a9e82c (diff)
i830: Tidy i830_uxa_put_image()
Use a single code path to upload the image data after selecting the right bo, and take advantage of pwrite() when possible. Fixes: Bug 28569 - [i965] IGN's flash-based video player crashes X https://bugs.freedesktop.org/show_bug.cgi?id=28569 Bug 28573 - [i965] Fullscreen flash and windowed SDL games fail to update the screen https://bugs.freedesktop.org/show_bug.cgi?id=28573 Reported-and-tested-by: Brian Rogers <brian@xyzw.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/i830_batchbuffer.c')
-rw-r--r--src/i830_batchbuffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i830_batchbuffer.c b/src/i830_batchbuffer.c
index ada5809a..46c9d4fb 100644
--- a/src/i830_batchbuffer.c
+++ b/src/i830_batchbuffer.c
@@ -240,6 +240,7 @@ void intel_batch_submit(ScrnInfoPtr scrn)
batch);
entry->batch_read_domains = entry->batch_write_domain = 0;
+ entry->busy = -1;
list_del(&entry->batch);
}