summaryrefslogtreecommitdiff
path: root/src/sna/kgem.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-04-12 11:01:08 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-04-12 11:39:11 +0100
commit9dae6f9f1f169c228929185a8bd94e82afe92574 (patch)
treed78aceedd7d94bb5cc633df33e8010e05b91b104 /src/sna/kgem.h
parent97fc1d4c5bd268f331aaa9f7144e4fe40837fbb0 (diff)
sna: Flush the scanout cache after resizing the display
And ensure that any new scanout allocations make the requested size. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.h')
-rw-r--r--src/sna/kgem.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h
index e4862921..3086f17e 100644
--- a/src/sna/kgem.h
+++ b/src/sna/kgem.h
@@ -194,10 +194,10 @@ struct kgem {
void (*retire)(struct kgem *kgem);
void (*expire)(struct kgem *kgem);
+ uint16_t reloc__self[256];
uint32_t batch[64*1024-8] page_aligned;
struct drm_i915_gem_exec_object2 exec[256] page_aligned;
struct drm_i915_gem_relocation_entry reloc[4096] page_aligned;
- uint16_t reloc__self[256];
#ifdef DEBUG_MEMORY
struct {
@@ -682,6 +682,9 @@ bool kgem_expire_cache(struct kgem *kgem);
void kgem_purge_cache(struct kgem *kgem);
void kgem_cleanup_cache(struct kgem *kgem);
+void kgem_clean_scanout_cache(struct kgem *kgem);
+void kgem_clean_large_cache(struct kgem *kgem);
+
#if HAS_DEBUG_FULL
void __kgem_batch_debug(struct kgem *kgem, uint32_t nbatch);
#else