summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-03-16 10:37:29 +0100
committerAlex Deucher <alexander.deucher@amd.com>2023-03-31 11:18:42 -0400
commitf04b8af5e9fc42a8e3b26ebf3b8ccf681a064985 (patch)
tree20eba89d09908010d34a923ef66ad7a7eaff9633 /drivers/gpu/drm/radeon/radeon.h
parent120ceaf78e28f20ec7244c021d24d1e409572be1 (diff)
downloadlinux-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.h2
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,