sna: Assign GCops after checking for fallback to pass sanity checks
We assert that prior to installing the fallback GCops the current ops are the default set. This is broken if we point GCops to our GPU ops, but then fallback. So check for the fallback first. Reported-by: Jiri Slaby <jirislaby@gmail.com> References: https://bugs.freedesktop.org/show_bug.cgi?id=47597 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
3c9759ef2a
commit
596c0a6870
|
|
@ -6751,13 +6751,13 @@ spans_fallback:
|
|||
}
|
||||
assert(gc->miTranslate);
|
||||
|
||||
gc->ops = &sna_gc_ops__tmp;
|
||||
DBG(("%s: miZeroLine (solid dash)\n", __FUNCTION__));
|
||||
if (!sna_fill_init_blt(&fill,
|
||||
data.sna, data.pixmap,
|
||||
data.bo, gc->alu, color))
|
||||
goto fallback;
|
||||
|
||||
gc->ops = &sna_gc_ops__tmp;
|
||||
miZeroDashLine(drawable, gc, mode, n, pt);
|
||||
fill.done(data.sna, &fill);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue