summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-24 02:54:43 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-24 03:04:53 +0000
commita44663af9335136cba59b12078c6717992283b62 (patch)
tree9ea7b958764a71af7f2bb13ebae35eec8947fafa
parent4a27dd287cdb85d80ceaf6b54e7de0c17e01c00d (diff)
sna/gen4,gen5: Fix typo and only emit a flush if the video source is dirty
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen4_render.c2
-rw-r--r--src/sna/gen5_render.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c
index dbb7c43e..5e9bd379 100644
--- a/src/sna/gen4_render.c
+++ b/src/sna/gen4_render.c
@@ -1630,7 +1630,7 @@ gen4_render_video(struct sna *sna,
if (!kgem_check_bo(&sna->kgem, tmp.dst.bo, frame->bo, NULL))
kgem_submit(&sna->kgem);
- if (!kgem_bo_is_dirty(frame->bo))
+ if (kgem_bo_is_dirty(frame->bo))
kgem_emit_flush(&sna->kgem);
gen4_video_bind_surfaces(sna, &tmp, frame);
diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c
index e9a61f06..36f236f4 100644
--- a/src/sna/gen5_render.c
+++ b/src/sna/gen5_render.c
@@ -1677,7 +1677,7 @@ gen5_render_video(struct sna *sna,
if (!kgem_check_bo(&sna->kgem, tmp.dst.bo, frame->bo, NULL))
kgem_submit(&sna->kgem);
- if (!kgem_bo_is_dirty(frame->bo))
+ if (kgem_bo_is_dirty(frame->bo))
kgem_emit_flush(&sna->kgem);
gen5_video_bind_surfaces(sna, &tmp, frame);