From dc61705a6e425952de4c81c2320382af07cf948a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 5 Nov 2013 08:49:28 +0000 Subject: sna: Use an inplace exchange for large untiled BO On older architectures, large BO have to be untiled and so we can reuse an existing CPU bo by adjusting its caching mode. References: https://bugs.freedesktop.org/show_bug.cgi?id=70924 Signed-off-by: Chris Wilson --- src/sna/kgem.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sna/kgem.h') diff --git a/src/sna/kgem.h b/src/sna/kgem.h index f2abb047..6abab08e 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -299,6 +299,8 @@ struct kgem_bo *kgem_create_cpu_2d(struct kgem *kgem, int bpp, uint32_t flags); +bool kgem_bo_convert_to_gpu(struct kgem *kgem, struct kgem_bo *bo); + uint32_t kgem_bo_get_binding(struct kgem_bo *bo, uint32_t format); void kgem_bo_set_binding(struct kgem_bo *bo, uint32_t format, uint16_t offset); -- cgit v1.2.3