diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-15 20:26:19 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-15 20:30:41 +0100 |
commit | a25573d5c47ebea34c076075e1993233d7db2b4f (patch) | |
tree | a5bbf5f6a0452fdd4dbc8979b75a07baa9006144 /src/i830.h | |
parent | 23ddcf45344936da2931a3bf25bd187a9ea28344 (diff) |
drmmode: Use the tiled stride for the rotated pixmap.
After d41684d5459 we now allocate all framebuffers as tiled bo, and so
we must be careful to use the appropriate stride as returned from the
allocation, instead of assuming that it is just an aligned width.
Fixes:
Bug 28461 - screen rotation results in corrupted output.
https://bugs.freedesktop.org/show_bug.cgi?id=28461
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reported-by: Till Matthiesen <entropy@everymail.net>
Diffstat (limited to 'src/i830.h')
-rw-r--r-- | src/i830.h | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -648,13 +648,4 @@ static inline Bool pixmap_is_scanout(PixmapPtr pixmap) return pixmap == screen->GetScreenPixmap(screen); } -/* - * Pad to accelerator requirement - */ -static inline int i830_pad_drawable_width(int width) -{ - return (width + 63) & ~63; -} - - #endif /* _I830_H_ */ |