summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2019-03-04 21:37:40 +0300
committerThomas Hellstrom <thellstrom@vmware.com>2019-08-15 09:40:05 +0300
commita0a63940b0c9ebc6d3156bbfe0c2cf7560b580cd (patch)
treeaf18fb0b82892b0f63d8f5ebdb7b575a2b52ec79 /arch
parent6ae8748bf70630c1598bfdeb7e874624a57fd898 (diff)
downloadlinux-a0a63940b0c9ebc6d3156bbfe0c2cf7560b580cd.tar.xz
drm/vmwgfx: Assign eviction priorities to resources
TTM provides a means to assign eviction priorities to buffer object. This means that all buffer objects with a lower priority will be evicted first on memory pressure. Use this to make sure surfaces and in particular non-dirty surfaces are evicted first. Evicting in particular shaders, cotables and contexts imply a significant performance hit on vmwgfx, so make sure these resources are evicted last. Some buffer objects are sub-allocated in user-space which means we can have many resources attached to a single buffer object or resource. In that case the buffer object is given the highest priority of the attached resources. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Deepak Rawat <drawat@vmware.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions