d3d12: Fixes unused-variable compile error
authorYonggang Luo <luoyonggang@gmail.com>
Wed, 28 Jun 2023 09:42:49 +0000 (17:42 +0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 28 Jun 2023 12:04:56 +0000 (12:04 +0000)
commitf8a204738779bcdbd6b02d9f8ebd7962a74cae16
tree6ec7ba0b9c4f55c1f8b8d129ba3f87055a49cf0d
parent4096bd8d8593480303e3cdd8a83b00ae71f740c1
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 <luoyonggang@gmail.com>
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23900>
src/gallium/drivers/d3d12/d3d12_video_screen.cpp