mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
mediafoundation: Only attach stats to last slice mfsample
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37982>
This commit is contained in:
parent
80c8994455
commit
416398aecb
1 changed files with 2 additions and 1 deletions
|
|
@ -1349,7 +1349,8 @@ CDX12EncHMFT::FinalizeAndEmitOutputSample( LPDX12EncodeContext pDX12EncodeContex
|
|||
}
|
||||
|
||||
// Attach the async stats DXGIBuffers to the MFSample output gated by pAsyncFence completion
|
||||
{
|
||||
// Only to the last slice (or full frame) sample.
|
||||
if (bIsLastSlice) {
|
||||
// Set stats metadata buffers to the sample here. As we are returning the dxgi buffers gated by the completion fence
|
||||
// for the resolved stats we do not need to wait for the pAsyncFence completion on the CPU.
|
||||
if( FAILED( ConfigureAsyncStatsMetadataOutputSampleAttributes( spOutputSample.Get(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue