diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2023-03-16 10:37:29 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-03-31 11:18:42 -0400 |
commit | f04b8af5e9fc42a8e3b26ebf3b8ccf681a064985 (patch) | |
tree | 20eba89d09908010d34a923ef66ad7a7eaff9633 /drivers/gpu/drm/radeon/radeon.h | |
parent | 120ceaf78e28f20ec7244c021d24d1e409572be1 (diff) | |
download | linux-f04b8af5e9fc42a8e3b26ebf3b8ccf681a064985.tar.gz linux-f04b8af5e9fc42a8e3b26ebf3b8ccf681a064985.tar.bz2 linux-f04b8af5e9fc42a8e3b26ebf3b8ccf681a064985.zip |
drm/radeon: Move radeon_align_pitch() next to dumb-buffer helpers
Move radeon_align_pitch() next to its caller in the dumb-buffer
code. Removes the only dependency on the radeon's fbdev source file
that is not related to fbdev emulation. No functional changes.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index d19a4b1c1a8f..8afb03bbce29 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -530,6 +530,8 @@ struct radeon_gem { extern const struct drm_gem_object_funcs radeon_gem_object_funcs; +int radeon_align_pitch(struct radeon_device *rdev, int width, int cpp, bool tiled); + int radeon_gem_init(struct radeon_device *rdev); void radeon_gem_fini(struct radeon_device *rdev); int radeon_gem_object_create(struct radeon_device *rdev, unsigned long size, |