mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
d3d12: d3d12_video_encode_support_caps was assigning a stack variable address to capEncoderSupportData in/out arg
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40511>
This commit is contained in:
parent
0e37a80aca
commit
6e39982b32
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue