]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: Set depth on low mem to 16 bpp instead of 8 bpp
authorEgbert Eich <eich@suse.de>
Tue, 18 Jul 2017 15:20:53 +0000 (17:20 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2017 20:37:06 +0000 (16:37 -0400)
commit40cbb3f0072ae4aa0b85e46432fb3a79ebf8c9f2
treed9c93aae19837bd131ac8726e620a03b6a716295
parent1971630ead9cdec38be343eb99daf3e32a052788
drm/radeon: Set depth on low mem to 16 bpp instead of 8 bpp

The radeon driver reduces the framebuffer resolution to 8bpp if a
device with less than 32MB VRAM is found.  This causes the framebuffer
to run in 8 bit paletted mode.  For a text console this is not an
issue as 256 different colors is more than one gets on a VGA text
console.  However this leads to a poor 8bit pseudo-color visual when
running X on fbdev, too, which is quite ugly.

In this patch, we try to give some moderate compromise: limit the
framebuffer bpp to 8 only when VRAM is 8MB or less, and use 16 bpp
otherwise for 32MB or less VRAM.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Egbert Eich <eich@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_fb.c