mirror of
https://github.com/torvalds/linux.git
synced 2026-04-20 07:43:57 -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:
@@ -889,7 +889,7 @@ static int vmw_cmdbuf_space_pool(struct vmw_cmdbuf_man *man,
|
||||
header->cmd = man->map + offset;
|
||||
if (man->using_mob) {
|
||||
cb_hdr->flags = SVGA_CB_FLAG_MOB;
|
||||
cb_hdr->ptr.mob.mobid = man->cmd_space->mem.start;
|
||||
cb_hdr->ptr.mob.mobid = man->cmd_space->resource->start;
|
||||
cb_hdr->ptr.mob.mobOffset = offset;
|
||||
} else {
|
||||
cb_hdr->ptr.pa = (u64)man->handle + (u64)offset;
|
||||
|
||||
Reference in New Issue
Block a user