diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-07-31 10:35:09 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-07-31 10:35:09 +0000 |
commit | 8ab2045b3c649fedfd64b031fb6f18b06227f5e7 (patch) | |
tree | 2a5757954e2612aa482c3c36f6c5f8aaf145c76b /sys/dev/pci/drm/amd | |
parent | de357ee7dd75ac97cfc76070629c0f5e31d7dd66 (diff) |
drm/amd/display: Fill prescale_params->scale for RGB565
From Nicholas Kazlauskas
147137f86b5b72aea3af4edb2e66f10c0baa841e in linux 4.19.y/4.19.63
1352c779cb74d427f4150cbe779a2f7886f70cae in mainline linux
Diffstat (limited to 'sys/dev/pci/drm/amd')
-rw-r--r-- | sys/dev/pci/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/sys/dev/pci/drm/amd/display/dc/dce110/dce110_hw_sequencer.c index a4eae86a4c8..313037e2e3c 100644 --- a/sys/dev/pci/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +++ b/sys/dev/pci/drm/amd/display/dc/dce110/dce110_hw_sequencer.c @@ -242,6 +242,9 @@ static void build_prescale_params(struct ipp_prescale_params *prescale_params, prescale_params->mode = IPP_PRESCALE_MODE_FIXED_UNSIGNED; switch (plane_state->format) { + case SURFACE_PIXEL_FORMAT_GRPH_RGB565: + prescale_params->scale = 0x2082; + break; case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888: case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888: prescale_params->scale = 0x2020; |