summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-20 22:08:23 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-20 23:18:10 +0100
commit1a4b6fea7b1516de35e6800efa5b85f8401a5b2a (patch)
tree59ef33de8d7c9b26ea283866a330205c42830e3b /src
parent892b1a1e431e8f27133825f8a27dde4955da0054 (diff)
sna: Assign a unique id to snoopable CPU bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/kgem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index c5b88ffe..49e27d07 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -3309,6 +3309,7 @@ struct kgem_bo *kgem_create_cpu_2d(struct kgem *kgem,
assert(bo->snoop);
bo->refcnt = 1;
bo->pitch = stride;
+ bo->unique_id = kgem_get_unique_id(kgem);
return bo;
}
@@ -3331,6 +3332,7 @@ struct kgem_bo *kgem_create_cpu_2d(struct kgem *kgem,
}
bo->pitch = stride;
+ bo->unique_id = kgem_get_unique_id(kgem);
return bo;
}
@@ -3350,6 +3352,7 @@ struct kgem_bo *kgem_create_cpu_2d(struct kgem *kgem,
bo->map = MAKE_USER_MAP(ptr);
bo->pitch = stride;
+ bo->unique_id = kgem_get_unique_id(kgem);
return bo;
}