Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01f83e06 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/ttm: remove cur_placement

parent 1144b63a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -355,11 +355,10 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo,
		bo->evicted = false;
	}

	if (bo->mem.mm_node) {
	if (bo->mem.mm_node)
		bo->offset = (bo->mem.start << PAGE_SHIFT) +
		    bdev->man[bo->mem.mem_type].gpu_offset;
		bo->cur_placement = bo->mem.placement;
	} else
	else
		bo->offset = 0;

	return 0;
+0 −1
Original line number Diff line number Diff line
@@ -224,7 +224,6 @@ struct ttm_buffer_object {
	 */

	uint64_t offset; /* GPU address space is independent of CPU word size */
	uint32_t cur_placement;

	struct sg_table *sg;