diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-04-12 11:01:08 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-04-12 11:39:11 +0100 |
commit | 9dae6f9f1f169c228929185a8bd94e82afe92574 (patch) | |
tree | d78aceedd7d94bb5cc633df33e8010e05b91b104 /src/sna/kgem.h | |
parent | 97fc1d4c5bd268f331aaa9f7144e4fe40837fbb0 (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.h | 5 |
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 |