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

Author: Jesse Natalie <jenat...@microsoft.com>
Date:   Fri Nov 24 13:25:38 2023 -0800

d3d12: Fix hevc 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_hevc.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/d3d12/d3d12_video_enc_hevc.cpp 
b/src/gallium/drivers/d3d12/d3d12_video_enc_hevc.cpp
index b225b069b07..4bd343a3359 100644
--- a/src/gallium/drivers/d3d12/d3d12_video_enc_hevc.cpp
+++ b/src/gallium/drivers/d3d12/d3d12_video_enc_hevc.cpp
@@ -1034,7 +1034,7 @@ d3d12_video_encoder_build_codec_headers_hevc(struct 
d3d12_video_encoder *pD3D12E
    
    bool writeNewVPS = isFirstFrame;
    
-   uint64_t writtenVPSBytesCount = 0;
+   size_t writtenVPSBytesCount = 0;
    if (writeNewVPS) {
       bool gopHasBFrames = 
(pD3D12Enc->m_currentEncodeConfig.m_encoderGOPConfigDesc.m_HEVCGroupOfPictures.PPicturePeriod
 > 1);
       pHEVCBitstreamBuilder->build_vps(*profDesc.pHEVCProfile,
@@ -1050,7 +1050,7 @@ d3d12_video_encoder_build_codec_headers_hevc(struct 
d3d12_video_encoder *pD3D12E
       pWrittenCodecUnitsSizes.push_back(writtenVPSBytesCount);
    }
 
-   uint64_t writtenSPSBytesCount = 0;
+   size_t writtenSPSBytesCount = 0;
    if (writeNewSPS) {
       // For every new SPS for reconfiguration, increase the active_sps_id
       if (!isFirstFrame) {

Reply via email to