d3d12: add missing updating of pMetadata

Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39273>
This commit is contained in:
Pohsiang (John) Hsu 2026-01-07 08:33:45 -08:00 committed by Marge Bot
parent 884cf1d39e
commit a84f93be0c

View file

@ -4835,6 +4835,8 @@ d3d12_video_encoder_get_feedback(struct pipe_video_codec *codec,
*output_buffer_size,
pD3D12Enc->m_spEncodedFrameMetadata[current_metadata_slot].comp_bit_destinations[0/*first slice*/]->width0);
opt_metadata.encode_result |= PIPE_VIDEO_FEEDBACK_METADATA_ENCODE_FLAG_MAX_FRAME_SIZE_OVERFLOW;
if (pMetadata)
*pMetadata = opt_metadata;
assert(false);
}
@ -5260,4 +5262,4 @@ d3d12_video_encoder_get_last_slice_completion_fence(struct pipe_video_codec *cod
}
return -1;
}
}