Commit 10c2b242 authored by Steve Lhomme's avatar Steve Lhomme

hw:d3d11: get a better texture format when the source doesn't have a picsys

parent f745b07a
......@@ -80,10 +80,16 @@ void D3D11_FilterHoldInstance(filter_t *filter, d3d11_device_t *out, D3D11_TEXTU
memset(dstDesc, 0, sizeof(*dstDesc));
if (filter-> == VLC_CODEC_D3D11_OPAQUE_10B)
dstDesc->Format = DXGI_FORMAT_P010;
dstDesc->Format = DXGI_FORMAT_NV12;
dstDesc->Format = DxgiFourccFormat( filter-> );
if (dstDesc->Format == DXGI_FORMAT_UNKNOWN)
switch (filter->
case VLC_CODEC_D3D11_OPAQUE: dstDesc->Format = DXGI_FORMAT_NV12; break;
case VLC_CODEC_D3D11_OPAQUE_10B: dstDesc->Format = DXGI_FORMAT_P010; break;
case VLC_CODEC_D3D11_OPAQUE_BGRA: dstDesc->Format = DXGI_FORMAT_B8G8R8A8_UNORM; break;
case VLC_CODEC_D3D11_OPAQUE_RGBA: dstDesc->Format = DXGI_FORMAT_R8G8B8A8_UNORM; break;
default: break;
dstDesc->Width = filter->;
dstDesc->Height = filter->;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment