OSDN Git Service

intel: Clear execobject flags before preserving object in reuse cache
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Jan 2017 20:20:30 +0000 (20:20 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Jan 2017 20:20:30 +0000 (20:20 +0000)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c

index 9195f3e..077746c 100644 (file)
@@ -1411,6 +1411,8 @@ drm_intel_gem_bo_unreference_final(drm_intel_bo *bo, time_t time)
                bo_gem->name = NULL;
                bo_gem->validate_index = -1;
 
+               bo_gem->kflags = 0;
+
                DRMLISTADDTAIL(&bo_gem->head, &bucket->head);
        } else {
                drm_intel_gem_bo_free(bo);