d3d12: d3d12_video_encode_support_caps was assigning a stack variable address to capEncoderSupportData in/out arg
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40511>
This commit is contained in:
Silvio Vilerino 2026-03-19 09:01:14 -04:00 committed by Marge Bot
parent 0e37a80aca
commit 6e39982b32

View file

@ -625,7 +625,7 @@ struct d3d12_encode_support_cap_allocations
static bool
d3d12_video_encode_support_caps(const D3D12_VIDEO_ENCODER_CODEC &argTargetCodec,
D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC maxResolution,
const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC &maxResolution,
DXGI_FORMAT encodeFormat,
ID3D12VideoDevice3 *pD3D12VideoDevice,
D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT codecSupport,
@ -1934,7 +1934,7 @@ d3d12_has_video_encode_support(struct pipe_screen *pscreen,
// DXGI_FORMAT InputFormat;
capEncoderSupportData.InputFormat,
// D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC InputResolution;
capEncoderSupportData.pResolutionList[0],
maxRes,
// D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION CodecConfiguration;
capEncoderSupportData.CodecConfiguration,
// D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SubregionFrameEncoding;