mirror of
https://github.com/torvalds/linux.git
synced 2026-05-03 22:12:32 -04:00
drm/ttm: rename bo->mem and make it a pointer
When we want to decouble resource management from buffer management we need to be able to handle resources separately. Add a resource pointer and rename bo->mem so that all code needs to change to access the pointer instead. No functional change. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210430092508.60710-4-christian.koenig@amd.com
This commit is contained in:
@@ -483,10 +483,10 @@ int vmw_bo_cpu_blit(struct ttm_buffer_object *dst,
|
||||
d.src_addr = NULL;
|
||||
d.dst_pages = dst->ttm->pages;
|
||||
d.src_pages = src->ttm->pages;
|
||||
d.dst_num_pages = dst->mem.num_pages;
|
||||
d.src_num_pages = src->mem.num_pages;
|
||||
d.dst_prot = ttm_io_prot(dst, &dst->mem, PAGE_KERNEL);
|
||||
d.src_prot = ttm_io_prot(src, &src->mem, PAGE_KERNEL);
|
||||
d.dst_num_pages = dst->resource->num_pages;
|
||||
d.src_num_pages = src->resource->num_pages;
|
||||
d.dst_prot = ttm_io_prot(dst, dst->resource, PAGE_KERNEL);
|
||||
d.src_prot = ttm_io_prot(src, src->resource, PAGE_KERNEL);
|
||||
d.diff = diff;
|
||||
|
||||
for (j = 0; j < h; ++j) {
|
||||
|
||||
Reference in New Issue
Block a user