diff options
| author | Gerd Hoffmann <[email protected]> | 2019-08-05 14:01:07 +0000 |
|---|---|---|
| committer | Gerd Hoffmann <[email protected]> | 2019-08-06 06:21:54 +0000 |
| commit | c105de2828e13931cd218e8b801cd6762b618992 (patch) | |
| tree | 669ee2938219f6a3b405963a0d54e5ec889baf8b /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h | |
| parent | drm/radeon: use embedded gem object (diff) | |
| download | kernel-c105de2828e13931cd218e8b801cd6762b618992.tar.gz kernel-c105de2828e13931cd218e8b801cd6762b618992.zip | |
drm/amdgpu: use embedded gem object
Drop drm_gem_object from amdgpu_bo, use the
ttm_buffer_object.base instead.
Build tested only.
Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h index b8ba6e27c61f..2f17150e26e1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h @@ -31,7 +31,7 @@ */ #define AMDGPU_GEM_DOMAIN_MAX 0x3 -#define gem_to_amdgpu_bo(gobj) container_of((gobj), struct amdgpu_bo, gem_base) +#define gem_to_amdgpu_bo(gobj) container_of((gobj), struct amdgpu_bo, tbo.base) void amdgpu_gem_object_free(struct drm_gem_object *obj); int amdgpu_gem_object_open(struct drm_gem_object *obj, |
