Module: Mesa
Branch: main
Commit: ae62fc01fa95d7121451ae10d1988a73ff645c9b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae62fc01fa95d7121451ae10d1988a73ff645c9b

Author: Jesse Natalie <[email protected]>
Date:   Fri Nov 24 13:07:17 2023 -0800

d3d12: Fix h264 encoder 32-bit build (uint64_t -> size_t)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26363>

---

 src/gallium/drivers/d3d12/d3d12_video_enc_h264.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/d3d12/d3d12_video_enc_h264.cpp 
b/src/gallium/drivers/d3d12/d3d12_video_enc_h264.cpp
index 31b72bc3790..bbf3b9863a1 100644
--- a/src/gallium/drivers/d3d12/d3d12_video_enc_h264.cpp
+++ b/src/gallium/drivers/d3d12/d3d12_video_enc_h264.cpp
@@ -1080,7 +1080,7 @@ d3d12_video_encoder_build_codec_headers_h264(struct 
d3d12_video_encoder *pD3D12E
       static_cast<d3d12_video_bitstream_builder_h264 
*>(pD3D12Enc->m_upBitstreamBuilder.get());
    assert(pH264BitstreamBuilder);
 
-   uint64_t writtenAUDBytesCount = 0;
+   size_t writtenAUDBytesCount = 0;
    pWrittenCodecUnitsSizes.clear();
    if (pH264BitstreamBuilder->insert_aud_nalu_requested())
    {
@@ -1099,7 +1099,7 @@ d3d12_video_encoder_build_codec_headers_h264(struct 
d3d12_video_encoder *pD3D12E
 
    uint32_t active_seq_parameter_set_id = 
pH264BitstreamBuilder->get_active_sps_id();
 
-   uint64_t writtenSPSBytesCount = 0;
+   size_t writtenSPSBytesCount = 0;
    if (writeNewSPS) {
       // For every new SPS for reconfiguration, increase the active_sps_id
       if (!isFirstFrame) {
@@ -1122,7 +1122,7 @@ d3d12_video_encoder_build_codec_headers_h264(struct 
d3d12_video_encoder *pD3D12E
       pWrittenCodecUnitsSizes.push_back(writtenSPSBytesCount);
    }
 
-   uint64_t writtenPPSBytesCount = 0;
+   size_t writtenPPSBytesCount = 0;
    pH264BitstreamBuilder->build_pps(*profDesc.pH264Profile,
                                     *codecConfigDesc.pH264Config,
                                     *currentPicParams.pH264PicData,

Reply via email to