d3d12: Fix H264 interlaced decode
authorSil Vilerino <sivileri@microsoft.com>
Sat, 26 Aug 2023 20:04:40 +0000 (16:04 -0400)
committerSil Vilerino <sivileri@microsoft.com>
Mon, 28 Aug 2023 17:15:55 +0000 (13:15 -0400)
commit7c98510d173b6a1408bbb2c9087a2588cd488fb7
treecff7ade71845497544362e509a06a9a931d81bae
parentc3cf7f3e35c0a2cf5124cf8f6084de84fe3e89ad
d3d12: Fix H264 interlaced decode

Have to set the interlaced field of the surface before
end_frame is called in the pipe codec object so the info
is available to the frontend/va, instead of setting it
directly in end_frame like before.

Fixes: 578e10e1571 ("frontends/va: Alloc interlaced surface for interlaced pics")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24909>
src/gallium/drivers/d3d12/d3d12_video_dec.cpp