#1154462 mesa: FTBFS: ../src/gallium/drivers/d3d12/d3d12_video_enc.cpp:778:120: error: invalid conversion from ‘const D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA*’ to ‘D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA*’ [-fpermissive]

#1154462#5
Date:
2026-11-19 12:43:15 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202611/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:mesa, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
      |                                                                                                                         const D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC2*
In file included from ../src/gallium/drivers/d3d12/d3d12_video_enc.cpp:37:
../src/gallium/drivers/d3d12/d3d12_video_enc_hevc.h:55:117: note: initializing argument 4 of ‘void d3d12_video_encoder_update_current_frame_pic_params_info_hevc(d3d12_video_encoder*, pipe_video_buffer*, pipe_picture_desc*, D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC2*, bool&)’
   55 |                                                               D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC2 *pHEVCPicData,
      |                                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../src/gallium/drivers/d3d12/d3d12_video_enc.cpp:778:120: error: invalid conversion from ‘const D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA*’ to ‘D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA*’ [-fpermissive]
  778 |          d3d12_video_encoder_update_current_frame_pic_params_info_av1(pD3D12Enc, srcTexture, picture, currentPicParams.pAV1PicData, bUsedAsReference);
      |                                                                                                       ~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      |                                                                                                                        |
      |                                                                                                                        const D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA*
In file included from ../src/gallium/drivers/d3d12/d3d12_video_enc.cpp:40:
../src/gallium/drivers/d3d12/d3d12_video_enc_av1.h:43:114: note: initializing argument 4 of ‘void d3d12_video_encoder_update_current_frame_pic_params_info_av1(d3d12_video_encoder*, pipe_video_buffer*, pipe_picture_desc*, D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA*, bool&)’
   43 |                                                              D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA* pAV1PicData,
      |                                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
[3178/5528] c++ -Isrc/gallium/drivers/d3d12/libd3d12.a.p -Is [too-long-redacted] d12_video_encoder_bitstream.cpp
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd build && LC_ALL=C.UTF-8 ninja -j2 -v returned exit code 1
make: *** [debian/rules:302: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------