summaryrefslogtreecommitdiff
path: root/src/intel_uxa.c
diff options
context:
space:
mode:
authorOwain G. Ainsworth <oga@openbsd.org>2011-04-04 18:34:32 +0100
committerOwain G. Ainsworth <oga@openbsd.org>2011-04-04 18:34:32 +0100
commit3450898ed26732a6741a617cfb0f7b6c7a1fdee2 (patch)
tree65cac4749edaba339ab9e264aa33d74f86b89e00 /src/intel_uxa.c
parent6a7510b0247920976120c00545e2cfde8b759d33 (diff)
don't do batch_submits in uxa block handler if vtswitched
avoids calling batch functions while we are vtswitched. the main benefit of this is that we dont' spam the log with batch submit failed messages
Diffstat (limited to 'src/intel_uxa.c')
-rw-r--r--src/intel_uxa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel_uxa.c b/src/intel_uxa.c
index a9cb5b65..51e22da4 100644
--- a/src/intel_uxa.c
+++ b/src/intel_uxa.c
@@ -933,6 +933,10 @@ static Bool intel_uxa_get_image(PixmapPtr pixmap,
void intel_uxa_block_handler(intel_screen_private *intel)
{
+ /* don't call this if switche,d doesn't matter and we won't complain
+ that way */
+ if (!intel->scrn->vtSema)
+ return;
if (intel->shadow_damage &&
pixman_region_not_empty(DamageRegion(intel->shadow_damage))) {
intel_shadow_blt(intel);