Module: Mesa Branch: main Commit: f8a204738779bcdbd6b02d9f8ebd7962a74cae16 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8a204738779bcdbd6b02d9f8ebd7962a74cae16
Author: Yonggang Luo <[email protected]> Date: Wed Jun 28 17:42:49 2023 +0800 d3d12: Fixes unused-variable compile error The compile error message is: ../../src/gallium/drivers/d3d12/d3d12_video_screen.cpp:481:70: error: unused variable ‘sliceData’ [-Werror=unused-variable] 481 | D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES sliceData = { }; | ^~~~~~~~~ cc1plus: all warnings being treated as errors Signed-off-by: Yonggang Luo <[email protected]> Reviewed-by: Sil Vilerino <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23900> --- src/gallium/drivers/d3d12/d3d12_video_screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/d3d12/d3d12_video_screen.cpp b/src/gallium/drivers/d3d12/d3d12_video_screen.cpp index 2676fb98d92..77a9b0bcf71 100644 --- a/src/gallium/drivers/d3d12/d3d12_video_screen.cpp +++ b/src/gallium/drivers/d3d12/d3d12_video_screen.cpp @@ -478,8 +478,8 @@ d3d12_video_encode_support_caps(const D3D12_VIDEO_ENCODER_CODEC &argTargetCodec, capEncoderSupportData1.ResolutionsListCount = 1; capEncoderSupportData1.pResolutionList = &maxResolution; capEncoderSupportData1.MaxReferenceFramesInDPB = 1; - D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES sliceData = { }; #if D3D12_PREVIEW_SDK_VERSION >= 711 + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES sliceData = { }; // Assume single tile for feature query support / entrypoint enumeration purposes D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES tileData = { }; tileData.ColCount = 1;
