summaryrefslogtreecommitdiff
path: root/src/sna/sna_video_textured.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-05-25 08:55:13 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-05-25 10:06:57 +0100
commit4094826aee76ef24dad13bc5a8a723bfe4a69162 (patch)
tree767eb14fda66308b2bb8ab1e4c1a8be5a5d73910 /src/sna/sna_video_textured.c
parent8a9a585341e2dd43c649204fcf6d92a867671ba3 (diff)
sna: Trust the crtc-is-bound determination after modeset and hotplug
As these should be the only time that they change and we now have the checks in place, we can drop the workaround of doing the check just before emitting the wait. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video_textured.c')
-rw-r--r--src/sna/sna_video_textured.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c
index 4975f55f..9247e88d 100644
--- a/src/sna/sna_video_textured.c
+++ b/src/sna/sna_video_textured.c
@@ -308,8 +308,7 @@ sna_video_textured_put_image(ScrnInfoPtr scrn,
* we can hit the next vsync.
*/
if (flush) {
- if (!sna_crtc_is_bound(sna, crtc))
- sna->kgem.batch[sna->kgem.wait] = 0;
+ assert(sna_crtc_is_bound(sna, ctrc));
kgem_submit(&sna->kgem);
}