summaryrefslogtreecommitdiff
path: root/src/sna/kgem.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-02-01 21:37:41 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-02-01 21:40:54 +0000
commit26613b046012f0ad968a15ab6bdfa8f6a6652e77 (patch)
tree075f1e5d8163de7c885534e36481212fb3b6369a /src/sna/kgem.h
parent699b4fd3139d1d6d02911d6c8f193ead3445f613 (diff)
sna: Allow more inplace promotions of CPU to GPU bo
If the CPU bo is wholly damaged, then it makes an ideal candidate for simply converting into the GPU bo. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.h')
-rw-r--r--src/sna/kgem.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h
index f670b604..4c4996ff 100644
--- a/src/sna/kgem.h
+++ b/src/sna/kgem.h
@@ -301,7 +301,9 @@ 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);
+bool kgem_bo_convert_to_gpu(struct kgem *kgem,
+ struct kgem_bo *bo,
+ unsigned flags);
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);