@@ -114,19 +114,18 @@ void DDI_VA::Query1NoCaps(const FeatureBlocks& /*blocks*/, TPushQ1 Push)
114
114
115
115
m_hw = Glob::VideoCore::Get (strg).GetHWType ();
116
116
const mfxU16 bitDepth = m_pDefaults->base .GetBitDepthLuma (*m_pDefaults);
117
- const mfxU16 chromaFormat = par.mfx .FrameInfo .ChromaFormat ;
118
117
const mfxU32 fourCC = par.mfx .FrameInfo .FourCC ;
119
118
const mfxU16 profile = par.mfx .CodecProfile ;
120
119
const mfxExtCodingOption3* pCO3 = ExtBuffer::Get (m_pDefaults->mvp );
121
- mfxU16 targetChromaFormat = MFX_CHROMAFORMAT_YUV420 ;
120
+ mfxU16 targetChromaFormat = m_pDefaults-> base . GetTargetChromaFormatPlus1 (*m_pDefaults) - 1 ; ;
122
121
123
122
SetIf (targetChromaFormat, profile == MFX_PROFILE_AV1_HIGH, MFX_CHROMAFORMAT_YUV444);
124
123
if (pCO3)
125
124
{
126
125
SetIf (targetChromaFormat, !pCO3->TargetChromaFormatPlus1 , pCO3->TargetChromaFormatPlus1 - 1 );
127
126
}
128
127
129
- MFX_SAFE_CALL (SetDDIID (bitDepth, chromaFormat , fourCC, targetChromaFormat));
128
+ MFX_SAFE_CALL (SetDDIID (bitDepth, targetChromaFormat , fourCC, targetChromaFormat));
130
129
131
130
return MFX_ERR_NONE;
132
131
});
@@ -398,6 +397,7 @@ mfxStatus DDI_VA::QueryCaps()
398
397
MFX_CHECK_STS (sts);
399
398
400
399
m_caps.ChromaSupportFlags .fields .i420 = !!(AV (VAConfigAttribRTFormat) & VA_RT_FORMAT_YUV420);
400
+ m_caps.ChromaSupportFlags .fields .RGB = !!(AV (VAConfigAttribRTFormat) & VA_RT_FORMAT_RGB32);
401
401
402
402
m_caps.BitDepthSupportFlags .fields .eight_bits = !!(AV (VAConfigAttribRTFormat) & VA_RT_FORMAT_YUV420);
403
403
m_caps.BitDepthSupportFlags .fields .ten_bits = !!(AV (VAConfigAttribRTFormat) & VA_RT_FORMAT_YUV420_10BPP);
0 commit comments