Commit 3ebf1c6d authored by Frediano Ziglio's avatar Frediano Ziglio Committed by Daniel Vetter
parent 47ba614b
...@@ -32,7 +32,7 @@ static void qxl_ttm_bo_destroy(struct ttm_buffer_object *tbo) ...@@ -32,7 +32,7 @@ static void qxl_ttm_bo_destroy(struct ttm_buffer_object *tbo)
struct qxl_bo *bo; struct qxl_bo *bo;
struct qxl_device *qdev; struct qxl_device *qdev;
bo = container_of(tbo, struct qxl_bo, tbo); bo = to_qxl_bo(tbo);
qdev = (struct qxl_device *)bo->gem_base.dev->dev_private; qdev = (struct qxl_device *)bo->gem_base.dev->dev_private;
qxl_surface_evict(qdev, bo, false); qxl_surface_evict(qdev, bo, false);
......
...@@ -201,7 +201,7 @@ static void qxl_evict_flags(struct ttm_buffer_object *bo, ...@@ -201,7 +201,7 @@ static void qxl_evict_flags(struct ttm_buffer_object *bo,
placement->num_busy_placement = 1; placement->num_busy_placement = 1;
return; return;
} }
qbo = container_of(bo, struct qxl_bo, tbo); qbo = to_qxl_bo(bo);
qxl_ttm_placement_from_domain(qbo, QXL_GEM_DOMAIN_CPU, false); qxl_ttm_placement_from_domain(qbo, QXL_GEM_DOMAIN_CPU, false);
*placement = qbo->placement; *placement = qbo->placement;
} }
...@@ -365,7 +365,7 @@ static void qxl_bo_move_notify(struct ttm_buffer_object *bo, ...@@ -365,7 +365,7 @@ static void qxl_bo_move_notify(struct ttm_buffer_object *bo,
if (!qxl_ttm_bo_is_qxl_bo(bo)) if (!qxl_ttm_bo_is_qxl_bo(bo))
return; return;
qbo = container_of(bo, struct qxl_bo, tbo); qbo = to_qxl_bo(bo);
qdev = qbo->gem_base.dev->dev_private; qdev = qbo->gem_base.dev->dev_private;
if (bo->mem.mem_type == TTM_PL_PRIV0 && qbo->surface_id) if (bo->mem.mem_type == TTM_PL_PRIV0 && qbo->surface_id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment