mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
d3d12: Wrap d3d12_video_encode_get_hevc_codec_support around #if VIDEO_CODEC_H265ENC
Fixes: 92d6989fdc ("d3d12: Add support for HEVC 4:4:4 video encode using AYUV format")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12071
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31873>
This commit is contained in:
parent
2f23f57670
commit
5ede24323b
1 changed files with 2 additions and 0 deletions
|
|
@ -764,6 +764,7 @@ static d3d12_video_encode_get_h264_codec_support(const D3D12_VIDEO_ENCODER_PROFI
|
|||
return true;
|
||||
}
|
||||
|
||||
#if VIDEO_CODEC_H265ENC
|
||||
bool
|
||||
static d3d12_video_encode_get_hevc_codec_support ( const D3D12_VIDEO_ENCODER_CODEC &argCodec,
|
||||
const D3D12_VIDEO_ENCODER_PROFILE_DESC &argTargetProfile,
|
||||
|
|
@ -837,6 +838,7 @@ static d3d12_video_encode_get_hevc_codec_support ( const D3D12_VIDEO_ENCODER_COD
|
|||
memset(&supportedCaps, 0, sizeof(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC));
|
||||
return false;
|
||||
}
|
||||
#endif // VIDEO_CODEC_H265ENC
|
||||
|
||||
static bool
|
||||
d3d12_has_video_encode_support(struct pipe_screen *pscreen,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue