summaryrefslogtreecommitdiff
path: root/src/drmmode_display.h
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-10-27 12:37:42 -0400
committerAlex Deucher <alexdeucher@gmail.com>2010-10-27 12:40:48 -0400
commitf07f9b7b61c05f2de1d61bb0e2f71bd017c8d36a (patch)
treef7091c76b5e6e7e08d9dcfffafa109847776a86c /src/drmmode_display.h
parentd31046ba6c8eee9b7decc3875697d37c38bc38f3 (diff)
kms/radeon: unify fb bo alignment handling
Previously there were 3 different paths with what should have had duplicated code: - EXACreatePixmap2 - Initial front buffer creation - Randr resize This patch attempts to unify the alignment across all 3. This may fix tiling issues in some cases and should make buffer pitches match for pageflipping.
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r--src/drmmode_display.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index a9891b2d..b972354d 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -95,6 +95,9 @@ extern Bool drmmode_setup_colormap(ScreenPtr pScreen, ScrnInfoPtr pScrn);
extern void drmmode_uevent_init(ScrnInfoPtr scrn, drmmode_ptr drmmode);
extern void drmmode_uevent_fini(ScrnInfoPtr scrn, drmmode_ptr drmmode);
+extern int drmmode_get_height_align(ScrnInfoPtr scrn, uint32_t tiling);
+extern int drmmode_get_pitch_align(ScrnInfoPtr scrn, int bpe, uint32_t tiling);
+
#endif
#endif