mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
drm/ttm: remove cur_placement
Not used any more. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
1144b63a16
commit
01f83e0663
2 changed files with 2 additions and 4 deletions
|
@ -355,11 +355,10 @@ moved:
|
||||||
bo->evicted = false;
|
bo->evicted = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bo->mem.mm_node) {
|
if (bo->mem.mm_node)
|
||||||
bo->offset = (bo->mem.start << PAGE_SHIFT) +
|
bo->offset = (bo->mem.start << PAGE_SHIFT) +
|
||||||
bdev->man[bo->mem.mem_type].gpu_offset;
|
bdev->man[bo->mem.mem_type].gpu_offset;
|
||||||
bo->cur_placement = bo->mem.placement;
|
else
|
||||||
} else
|
|
||||||
bo->offset = 0;
|
bo->offset = 0;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -224,7 +224,6 @@ struct ttm_buffer_object {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
uint64_t offset; /* GPU address space is independent of CPU word size */
|
uint64_t offset; /* GPU address space is independent of CPU word size */
|
||||||
uint32_t cur_placement;
|
|
||||||
|
|
||||||
struct sg_table *sg;
|
struct sg_table *sg;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue