Skip to content

d3d12: Fix video decode for interlaced streams with reference only textures required

Sil Vilerino requested to merge sivileri/mesa:ref_only_interlaced into main

There is some H264 decode corruption showing up on some AMD GPUs, on interlaced streams due to the output texture being reused from a reference picture when D3D12_RESOURCE_FLAG_VIDEO_DECODE_REFERENCE_ONLY is required, leading to a bad output texture (shouldn't have this flag). This patch fixes that, and it has been tested with 3 different IHV GPUs, no regressions happened.

Fixes: d8206f62 ("d3d12: Add video decode implementation of pipe_video_codec")

cc @jenatali

Merge request reports