mirror of
https://github.com/torvalds/linux.git
synced 2026-05-03 22:12:32 -04:00
drm/vmwgfx: Implement an infrastructure for read-coherent resources
Similar to write-coherent resources, make sure that from the user-space point of view, GPU rendered contents is automatically available for reading by the CPU. Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Matthew Wilcox <willy@infradead.org> Cc: Will Deacon <will.deacon@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rik van Riel <riel@surriel.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Huang Ying <ying.huang@intel.com> Cc: Jérôme Glisse <jglisse@redhat.com> Cc: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Deepak Rawat <drawat@vmware.com>
This commit is contained in:
@@ -77,6 +77,7 @@ struct vmw_user_resource_conv {
|
||||
* @dirty_sync: Upload the dirty mob contents to the resource.
|
||||
* @dirty_add_range: Add a sequential dirty range to the resource
|
||||
* dirty tracker.
|
||||
* @clean: Clean the resource.
|
||||
*/
|
||||
struct vmw_res_func {
|
||||
enum vmw_res_type res_type;
|
||||
@@ -101,6 +102,7 @@ struct vmw_res_func {
|
||||
int (*dirty_sync)(struct vmw_resource *res);
|
||||
void (*dirty_range_add)(struct vmw_resource *res, size_t start,
|
||||
size_t end);
|
||||
int (*clean)(struct vmw_resource *res);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user