Skip to content

Commit

Permalink
d3d11: disable fast clearing on Intel
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Jan 26, 2022
1 parent b6c5c74 commit 642bf12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion decoder/LAVVideo/decoders/d3d11va.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1072,8 +1072,12 @@ STDMETHODIMP CDecD3D11::CreateD3D11Decoder()
pDeviceContext->device->CheckFeatureSupport(D3D11_FEATURE_D3D11_OPTIONS, &d3d11Options,
sizeof(D3D11_FEATURE_DATA_D3D11_OPTIONS));

// XXX: The ClearView path does not function properly on Intel GPUs for P010
// Investigation has shown that contrary to the documentation, Intel transforms the color information,
// instead of treating the values like integral floats, as required.
ID3D11DeviceContext1 *pDeviceContext1 = nullptr;
if (d3d11Options.ClearView && SUCCEEDED(hr = pDeviceContext->device_context->QueryInterface(&pDeviceContext1)))
if (m_AdapterDesc.VendorId != VEND_ID_INTEL && d3d11Options.ClearView &&
SUCCEEDED(hr = pDeviceContext->device_context->QueryInterface(&pDeviceContext1)))
{
for (int i = 0; i < m_nOutputViews; i++)
{
Expand Down

0 comments on commit 642bf12

Please sign in to comment.