mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-06 11:55:22 +07:00
drm/amd/display: Remove redundant condition in dml vba
Found by 0-day https://lists.freedesktop.org/archives/dri-devel/2017-October/154698.html Signed-off-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
9e7da3268a
commit
be11749177
@ -3463,7 +3463,7 @@ bool Calculate256BBlockSizes(
|
||||
unsigned int *BlockWidth256BytesC)
|
||||
{
|
||||
if ((SourcePixelFormat == dm_444_64 || SourcePixelFormat == dm_444_32
|
||||
|| SourcePixelFormat == dm_444_16 || SourcePixelFormat == dm_444_16
|
||||
|| SourcePixelFormat == dm_444_16
|
||||
|| SourcePixelFormat == dm_444_8)) {
|
||||
if (SurfaceTiling == dm_sw_linear) {
|
||||
*BlockHeight256BytesY = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user