Commit 16820c4b authored by Chris Wilson's avatar Chris Wilson 🤔
Browse files

sna: Handle wedged devices during sna_crtc_redisplay

If the device is already wedged (no GPU), jump straight to the swrast
path for performing the per-crtc transformations.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105420

Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
parent 84eaaba2
......@@ -8816,7 +8816,8 @@ sna_crtc_redisplay(xf86CrtcPtr crtc, RegionPtr region, struct kgem_bo *bo)
region->extents.x2, region->extents.y2,
region_num_rects(region)));
assert(!wedged(sna));
if (wedged(sna))
goto fallback;
if (priv->clear) {
RegionRec whole;
......@@ -8861,9 +8862,12 @@ sna_crtc_redisplay(xf86CrtcPtr crtc, RegionPtr region, struct kgem_bo *bo)
return;
}
if (can_render(sna))
if (can_render(sna)) {
sna_crtc_redisplay__composite(crtc, region, bo);
else
return;
}
fallback:
sna_crtc_redisplay__fallback(crtc, region, bo);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment