sna: Rearrange assertion to ease use of substitute cached bo
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 4 Feb 2014 17:51:51 +0000 (17:51 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 4 Feb 2014 18:03:06 +0000 (18:03 +0000)
commit0906769c1b92520351729c4d8f2ab684d3ddf2eb
treedd7f79559366a35aa74fb2c1c128251eb25d558e
parentfc001615ff78df4dab6ee0d5dd966b723326c358
sna: Rearrange assertion to ease use of substitute cached bo

Since we call kgem_bo_submit() along one path when synchronising a
cached bo (which is known to be inactive) but still want to keep the
assertion on the refcnt, simply rearrange the code to only assert on the
active path.

References: https://bugs.freedesktop.org/show_bug.cgi?id=73406
Reported-by: Matti Hamalainen <ccr@tnsp.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/kgem.h