diff options
author | Christian König <christian.koenig@amd.com> | 2021-08-30 13:17:10 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-09-03 11:03:59 +0200 |
commit | 98cca519df6da699240403721f5d251ecf702b3b (patch) | |
tree | ae113aa456c459fa7c108c8a6696935179444b35 /include/drm/ttm/ttm_resource.h | |
parent | dma-buf: clarify dma_fence_add_callback documentation (diff) | |
download | wireguard-linux-98cca519df6da699240403721f5d251ecf702b3b.tar.xz wireguard-linux-98cca519df6da699240403721f5d251ecf702b3b.zip |
drm/ttm: cleanup ttm_resource_compat
Move that function into the resource handling and remove an unused parameter.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210831112110.113196-1-christian.koenig@amd.com
Diffstat (limited to 'include/drm/ttm/ttm_resource.h')
-rw-r--r-- | include/drm/ttm/ttm_resource.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h index 140b6b9a8bbe..32c5edd9e8b5 100644 --- a/include/drm/ttm/ttm_resource.h +++ b/include/drm/ttm/ttm_resource.h @@ -40,6 +40,7 @@ struct ttm_resource_manager; struct ttm_resource; struct ttm_place; struct ttm_buffer_object; +struct ttm_placement; struct dma_buf_map; struct io_mapping; struct sg_table; @@ -266,6 +267,8 @@ int ttm_resource_alloc(struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource **res); void ttm_resource_free(struct ttm_buffer_object *bo, struct ttm_resource **res); +bool ttm_resource_compat(struct ttm_resource *res, + struct ttm_placement *placement); void ttm_resource_manager_init(struct ttm_resource_manager *man, unsigned long p_size); |