]> 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)
commit8a0d34e433ecb4ad9139a869cca4d16a23607ecf
tree5cbe12356b0b054ddc98977791b615ba999ddc95
parent9f4ffda549437082cde0df00cc63907dad8b4409
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