mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 11:33:58 -04:00
drm/amd/display: handle "18" case in TruncToValidBPP
Handle 18 DecimalBPP like other cases Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Reviewed-by: Roman Li <Roman.Li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
dd8d1b49c0
commit
1952a21cf3
@@ -3380,6 +3380,8 @@ static unsigned int TruncToValidBPP(
|
||||
return 30;
|
||||
else if (DecimalBPP >= 24 && (DesiredBPP == 0 || DesiredBPP == 24))
|
||||
return 24;
|
||||
else if (DecimalBPP >= 18 && (DesiredBPP == 0 || DesiredBPP == 18))
|
||||
return 18;
|
||||
else
|
||||
return BPP_INVALID;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user