aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson2017-01-27 14:20:30 -0600
committerChris Wilson2017-01-27 14:20:30 -0600
commit22cfd0431131538ad1953af86f7cc2d48af176d4 (patch)
tree5140295dd2c688fb491e458df7272e4c7eda580d
parentc4b00767a7f3b2d00c7b1bc61e2b4d13f90c10ca (diff)
downloadexternal-libdrm-22cfd0431131538ad1953af86f7cc2d48af176d4.tar.gz
external-libdrm-22cfd0431131538ad1953af86f7cc2d48af176d4.tar.xz
external-libdrm-22cfd0431131538ad1953af86f7cc2d48af176d4.zip
intel: Clear execobject flags before preserving object in reuse cache
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--intel/intel_bufmgr_gem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 9195f3e6..077746cd 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -1411,6 +1411,8 @@ drm_intel_gem_bo_unreference_final(drm_intel_bo *bo, time_t time)
1411 bo_gem->name = NULL; 1411 bo_gem->name = NULL;
1412 bo_gem->validate_index = -1; 1412 bo_gem->validate_index = -1;
1413 1413
1414 bo_gem->kflags = 0;
1415
1414 DRMLISTADDTAIL(&bo_gem->head, &bucket->head); 1416 DRMLISTADDTAIL(&bo_gem->head, &bucket->head);
1415 } else { 1417 } else {
1416 drm_intel_gem_bo_free(bo); 1418 drm_intel_gem_bo_free(bo);