mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 18:30:34 +01:00
modesetting: Fix invalid identity CTM on 32-bit.
On 32-bit, the shifts used to initialized the identity CTM overflow and
result in zero instead of the intended 1. This results in a broken
display (on at least i915) when using the modesetting xorg driver.
Fix the invalid CTM by using ULL suffix on the shifts.
Fixes:4e670f1281ad75c5673b6ac75645036d810da8d9
Signed-off-by: Trevor Davenport <trevor_davenport@selinc.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1526>
(cherry picked from commit 69beb65653)
This commit is contained in:
parent
f427378a41
commit
f869f3cc76
1 changed files with 3 additions and 3 deletions
|
|
@ -63,9 +63,9 @@ static PixmapPtr drmmode_create_pixmap_header(ScreenPtr pScreen, int width, int
|
|||
void *pPixData);
|
||||
|
||||
static const struct drm_color_ctm ctm_identity = { {
|
||||
1UL << 32, 0, 0,
|
||||
0, 1UL << 32, 0,
|
||||
0, 0, 1UL << 32
|
||||
1ULL << 32, 0, 0,
|
||||
0, 1ULL << 32, 0,
|
||||
0, 0, 1ULL << 32
|
||||
} };
|
||||
|
||||
static Bool ctm_is_identity(const struct drm_color_ctm *ctm)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue