xf86-video-intel: src/sna/kgem.c
Chris Wilson
ickle at kemper.freedesktop.org
Thu Feb 23 01:51:06 PST 2012
src/sna/kgem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 57c19b10db2b512c52a593fad98b5ac5db4f1497
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Thu Feb 23 00:33:16 2012 +0000
sna: Use a CPU mapping if the bo is already in the CPU domain
The heuristic of using the mapping only before the first use in an
execbuffer was suboptimal and broken by the change in bo initialisation.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 5ded904..007dc04 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -2893,7 +2893,7 @@ void *kgem_bo_map(struct kgem *kgem, struct kgem_bo *bo)
assert(list_is_empty(&bo->list));
if (bo->tiling == I915_TILING_NONE &&
- (kgem->has_llc || bo->domain == bo->presumed_offset)) {
+ (kgem->has_llc || bo->domain == DOMAIN_CPU)) {
DBG(("%s: converting request for GTT map into CPU map\n",
__FUNCTION__));
ptr = kgem_bo_map__cpu(kgem, bo);
More information about the xorg-commit
mailing list