File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2375,7 +2375,7 @@ u8 drm_dp_dsc_sink_bpp_incr(const u8 dsc_dpcd[DP_DSC_RECEIVER_CAP_SIZE])
2375
2375
{
2376
2376
u8 bpp_increment_dpcd = dsc_dpcd [DP_DSC_BITS_PER_PIXEL_INC - DP_DSC_SUPPORT ];
2377
2377
2378
- switch (bpp_increment_dpcd ) {
2378
+ switch (bpp_increment_dpcd & DP_DSC_BITS_PER_PIXEL_MASK ) {
2379
2379
case DP_DSC_BITS_PER_PIXEL_1_16 :
2380
2380
return 16 ;
2381
2381
case DP_DSC_BITS_PER_PIXEL_1_8 :
Original file line number Diff line number Diff line change 359
359
# define DP_DSC_BITS_PER_PIXEL_1_4 0x2
360
360
# define DP_DSC_BITS_PER_PIXEL_1_2 0x3
361
361
# define DP_DSC_BITS_PER_PIXEL_1_1 0x4
362
+ # define DP_DSC_BITS_PER_PIXEL_MASK 0x7
362
363
363
364
#define DP_PSR_SUPPORT 0x070 /* XXX 1.2? */
364
365
# define DP_PSR_IS_SUPPORTED 1
You can’t perform that action at this time.
0 commit comments