]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/kms/nv04-nv4x: fix exposed format list
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 6 Aug 2017 02:25:05 +0000 (22:25 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 22 Aug 2017 08:04:35 +0000 (18:04 +1000)
commita58d4d793abfb2b25de1e02e5c5302f9318cd1aa
tree5cbe12356b0b054ddc98977791b615ba999ddc95
parent60074dfe7993af70cf5f766939b711909e181651
drm/nouveau/kms/nv04-nv4x: fix exposed format list

drm_crtc_init exposes the XRGB8888 and ARGB8888 formats. In actuality,
ARGB8888's 32-bit depth messes up some formulas that weren't meant for
it, and the alpha is fairly meaningless for the primary plane.

The modesetting logic appears to be fully prepared for RGB565 as well as
XRGB1555 however, as tested with modetest.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv04/crtc.c