projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2f1a18
)
i915: Handle DRM_VBLANK_SECONDARY when scheduling buffer swaps.
author
Michel Dänzer
<michel@daenzer.net>
Thu, 28 Sep 2006 14:07:56 +0000
(14:07 +0000)
committer
Michel Dänzer
<michel@daenzer.net>
Thu, 28 Sep 2006 14:07:56 +0000
(14:07 +0000)
src/mesa/drivers/dri/i915/intel_batchbuffer.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915/intel_batchbuffer.c
b/src/mesa/drivers/dri/i915/intel_batchbuffer.c
index 8b1c1c5b9802f42086a4428c70e8b1b4df897f67..865f15e79f552fd202e0389f4c6c673afc7ead26 100644
(file)
--- a/
src/mesa/drivers/dri/i915/intel_batchbuffer.c
+++ b/
src/mesa/drivers/dri/i915/intel_batchbuffer.c
@@
-402,6
+402,10
@@
void intelCopyBuffer( const __DRIdrawablePrivate *dPriv,
goto noschedule;
}
+ if ( intel->vblank_flags & VBLANK_FLAG_SECONDARY ) {
+ swap.seqtype |= DRM_VBLANK_SECONDARY;
+ }
+
if (!drmCommandWriteRead(intel->driFd, DRM_I915_VBLANK_SWAP, &swap,
sizeof(swap))) {
intel->swap_scheduled = 1;