From 7ded2136caaff0d105218aa1a93f1420f7baac4f Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Thu, 12 May 2022 05:34:57 +0000 Subject: [PATCH] dp_connectorimpl: Remove duplicate dscBitsPerPixelIncrement All other values of the BITS_PER_PIXEL_INCREMENT are handled here. This one was previously using a bitwise OR in, then also assigning directly after. Closes: #54 --- src/common/displayport/src/dp_connectorimpl.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/common/displayport/src/dp_connectorimpl.cpp b/src/common/displayport/src/dp_connectorimpl.cpp index 9bc2d423e..81d9f4ba6 100644 --- a/src/common/displayport/src/dp_connectorimpl.cpp +++ b/src/common/displayport/src/dp_connectorimpl.cpp @@ -1772,11 +1772,6 @@ void ConnectorImpl::populateDscSinkCaps(DSC_INFO* dscInfo, DeviceImpl * dev) dscInfo->sinkCaps.decoderColorFormatMask |= DSC_DECODER_COLOR_FORMAT_Y_CB_CR_NATIVE_420; } - if (dev->dscCaps.dscBitsPerPixelIncrement == BITS_PER_PIXEL_PRECISION_1_16) - { - dscInfo->sinkCaps.bitsPerPixelPrecision |= DSC_BITS_PER_PIXEL_PRECISION_1_16; - } - if (dev->dscCaps.dscBitsPerPixelIncrement == BITS_PER_PIXEL_PRECISION_1_16) { dscInfo->sinkCaps.bitsPerPixelPrecision = DSC_BITS_PER_PIXEL_PRECISION_1_16;