[PATCH v2 0/2] drm/amd: Avoid using import_attach directly
Thomas Zimmermann
tzimmermann at suse.de
Wed Jun 25 08:42:16 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.
v2:
- keep amdgpu_bo_print_info() as-is (Christian)
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 | 10 +++++-----
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 +++---
6 files changed, 14 insertions(+), 15 deletions(-)
--
2.50.0
More information about the dri-devel
mailing list