summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/kgem.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h
index 4c4996ff..fdabd504 100644
--- a/src/sna/kgem.h
+++ b/src/sna/kgem.h
@@ -343,9 +343,11 @@ static inline void kgem_submit(struct kgem *kgem)
static inline void kgem_bo_submit(struct kgem *kgem, struct kgem_bo *bo)
{
+ if (bo->exec == NULL)
+ return;
+
assert(bo->refcnt);
- if (bo->exec)
- _kgem_submit(kgem);
+ _kgem_submit(kgem);
}
void kgem_scanout_flush(struct kgem *kgem, struct kgem_bo *bo);