diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-10-27 12:37:42 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2010-10-27 12:40:48 -0400 |
commit | f07f9b7b61c05f2de1d61bb0e2f71bd017c8d36a (patch) | |
tree | f7091c76b5e6e7e08d9dcfffafa109847776a86c /src/drmmode_display.h | |
parent | d31046ba6c8eee9b7decc3875697d37c38bc38f3 (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.h | 3 |
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 |