[PATCH 0/2] drm/amd: Avoid using import_attach directly
Thomas Zimmermann
tzimmermann at suse.de
Thu Jun 19 12:15:45 UTC 2025
The field import_attach of struct drm_gem_object is often only
required by PRIME code. In other places, replace its use with
clearer alternatives.
Thomas Zimmermann (2):
drm/amdgpu: Test for imported buffers with drm_gem_is_imported()
drm/amdgpu: Use dma_buf from GEM object instance
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 5 ++---
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 14 ++++++--------
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 +++---
6 files changed, 15 insertions(+), 18 deletions(-)
--
2.49.0
More information about the amd-gfx
mailing list