Fix Raised Black Levels on Steam Deck OLED (#1265)

Add getDecoderColorRange to plvk
This commit is contained in:
Dylan Frankcom 2024-04-30 21:31:00 -04:00 committed by GitHub
commit 58e27875ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -905,6 +905,12 @@ int PlVkRenderer::getRendererAttributes()
return attributes;
}
int PlVkRenderer::getDecoderColorRange()
{
// Explicitly set the color range to full to fix raised black levels on OLED displays
return COLOR_RANGE_FULL;
}
int PlVkRenderer::getDecoderCapabilities()
{
return CAPABILITY_REFERENCE_FRAME_INVALIDATION_HEVC |