Bug 1497294 - P6. Fix NV12 playback on legacy D3D11 compositor. r=mattwoodrow

Depends on D8203

Differential Revision: https://phabricator.services.mozilla.com/D8246

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jean-Yves Avenard 2018-10-11 01:44:44 +00:00
parent c084a873d7
commit a08b6fd281

View File

@ -867,6 +867,9 @@ CompositorD3D11::DrawGeometry(const Geometry& aGeometry,
const float* yuvToRgb = gfxUtils::YuvToRgbMatrix4x3RowMajor(YUVColorSpace::BT601);
memcpy(&mPSConstants.yuvColorMatrix, yuvToRgb, sizeof(mPSConstants.yuvColorMatrix));
// TOTO: need to handle color depth properly. this assumes data is always
// 8 or 16 bits.
mPSConstants.vCoefficient[0] = 1.0;
SetSamplerForSamplingFilter(texturedEffect->mSamplingFilter);
}