sna/dri2: Apply the paraniod buffer clip in the correct coordinate system
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Jun 2014 15:32:45 +0000 (16:32 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Jun 2014 15:38:29 +0000 (16:38 +0100)
commit6c3399715e316be970c696b8949e3c14e83ea5df
tree9ab85f2e9a426f9fbbb7cbdf581291a79f2cef83
parentc25fa2216a3674f564a7e35d263a5d405aa97816
sna/dri2: Apply the paraniod buffer clip in the correct coordinate system

We need to only clip to the extents of the copy in the buffer space -
which implies that we need to translate the region into that space before
doing the clip.

Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_dri2.c