summaryrefslogtreecommitdiff
path: root/src/sna/gen6_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-17 20:00:34 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-17 20:00:34 +0000
commit9f68ac60ae37cc72503ec40691d1ae43a476f8e7 (patch)
treeac8b61e20a31d5d972560f1515b5a96414c14575 /src/sna/gen6_render.c
parent1ee00c408d8142cfaf4202393c2364c9ae73cb6e (diff)
sna/dri: Explicitly flag sync copies for the backends
As gen6/7 need to prevent ring switching and perform a rendercopy if we need to perform a vsync'ed copy. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen6_render.c')
-rw-r--r--src/sna/gen6_render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c
index 8b1ae3c6..7af59ae5 100644
--- a/src/sna/gen6_render.c
+++ b/src/sna/gen6_render.c
@@ -2453,6 +2453,9 @@ static inline bool prefer_blt_copy(struct sna *sna,
struct kgem_bo *dst_bo,
unsigned flags)
{
+ if (flags & COPY_SYNC)
+ return false;
+
if (PREFER_RENDER)
return PREFER_RENDER > 0;