Commit ed80814a authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

d3d11va: fill the formatTexture in the context

It might be used by the vout to determine if it's I420 or not
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent de8f3ca8
......@@ -209,6 +209,11 @@ static struct va_pic_context *CreatePicContext(
goto done;
pic_ctx->s.destroy = d3d11_pic_context_destroy;
pic_ctx->s.copy = d3d11_pic_context_copy;
D3D11_TEXTURE2D_DESC txDesc;
ID3D11Texture2D_GetDesc((ID3D11Texture2D*)p_resource, &txDesc);
pic_ctx->picsys.formatTexture = txDesc.Format;
pic_ctx->picsys.context = context;
pic_ctx->picsys.slice_index = slice;
pic_ctx->picsys.decoder = decoderSurface;
......
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