sna/dri2: Avoid trying to flip between bo with different pitches
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Jun 2014 13:56:02 +0000 (14:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Jun 2014 13:57:58 +0000 (14:57 +0100)
commit8901a99afb7be4f6f377a8e84e62e5d768c8443d
treeff6a6f49fcb92f8c6aaebd13464259bfbe97f30b
parent16574754a99c4472c1c90c426d9c1665a898f1d6
sna/dri2: Avoid trying to flip between bo with different pitches

It could happen that we create front/back buffers with different
pitches. The kernel refuses to flip between such buffers, and so we will
hit some fallback paths that try to fix up the failed flips. Circumvent
such by avoiding the flip.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_dri2.c