diff options
author | Nirmoy Das <nirmoy.das@amd.com> | 2021-06-14 19:49:50 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-06-15 17:25:42 -0400 |
commit | 23e24fbb7695d42fa90afefe08c06f29b47548ee (patch) | |
tree | 8f9e522b19a256641a32caf1f147cb68cf6b0b03 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | 391629bdfcb9014e8bcd1be216b59854877e70ed (diff) | |
download | linux-23e24fbb7695d42fa90afefe08c06f29b47548ee.tar.gz linux-23e24fbb7695d42fa90afefe08c06f29b47548ee.tar.bz2 linux-23e24fbb7695d42fa90afefe08c06f29b47548ee.zip |
drm/amdgpu: parameterize ttm BO destroy callback
Make provision to pass different ttm BO destroy callback
while creating a amdgpu_bo.
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 2cbc1d023f11..503846d9be81 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h @@ -55,7 +55,8 @@ struct amdgpu_bo_param { u64 flags; enum ttm_bo_type type; bool no_wait_gpu; - struct dma_resv *resv; + struct dma_resv *resv; + void (*destroy)(struct ttm_buffer_object *bo); }; /* bo virtual addresses in a vm */ |