summaryrefslogtreecommitdiff
path: root/src/sna/kgem.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-03 19:33:55 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-03 20:08:02 +0100
commit9e2ac8a413c05aafd1c69775c5b0fa5f1f37ac23 (patch)
tree98bc37ba19a791a7bcc41ddbe78edb97e93c12fb /src/sna/kgem.h
parentf26163e916e21f6b64a19c147165f2f2c9c5466d (diff)
sna: Use set-cache-level ioctl to create CPU bo
As an alternative to vmap, we can use the kernel for all memory management through bo, which is much preferred for its simplicity (i.e. avoiding introducing even more vm complexity). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.h')
-rw-r--r--src/sna/kgem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h
index f9b2a33a..22ae4019 100644
--- a/src/sna/kgem.h
+++ b/src/sna/kgem.h
@@ -155,6 +155,7 @@ struct kgem {
uint32_t has_vmap :1;
uint32_t has_relaxed_fencing :1;
uint32_t has_semaphores :1;
+ uint32_t has_cache_level :1;
uint32_t has_llc :1;
uint16_t fence_max;
@@ -235,6 +236,7 @@ enum {
CREATE_TEMPORARY = 0x20,
CREATE_NO_RETIRE = 0x40,
CREATE_NO_THROTTLE = 0x40,
+ CREATE_FORCE = 0x80,
};
struct kgem_bo *kgem_create_2d(struct kgem *kgem,
int width,