diff options
| author | Nirmoy Das <[email protected]> | 2021-06-14 17:49:50 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-06-15 21:25:42 +0000 |
| commit | 23e24fbb7695d42fa90afefe08c06f29b47548ee (patch) | |
| tree | 8f9e522b19a256641a32caf1f147cb68cf6b0b03 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | drm/amdgpu: remove amdgpu_vm_pt (diff) | |
| download | kernel-23e24fbb7695d42fa90afefe08c06f29b47548ee.tar.gz kernel-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 <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
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 */ |
