diff options
Diffstat (limited to 'src/sna/kgem.c')
-rw-r--r-- | src/sna/kgem.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 14a3f952..ac21d2ad 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -5735,8 +5735,10 @@ void kgem_bo_sync__cpu_full(struct kgem *kgem, struct kgem_bo *bo, bool write) kgem_bo_retire(kgem, bo); bo->domain = DOMAIN_CPU; } else { - kgem_bo_maybe_retire(kgem, bo); - bo->domain = DOMAIN_NONE; + if (bo->exec == NULL) { + kgem_bo_maybe_retire(kgem, bo); + bo->domain = DOMAIN_NONE; + } } } } |