d3d12: MSVC warning around operator precedence causing uint32_t==bool
authorJesse Natalie <jenatali@microsoft.com>
Wed, 18 May 2022 16:13:32 +0000 (09:13 -0700)
committerJesse Natalie <jenatali@microsoft.com>
Wed, 18 May 2022 16:28:49 +0000 (09:28 -0700)
Fixes: b171a6ba ("d3d12: Add video encode implementation of pipe_video_codec")
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16588>

src/gallium/drivers/d3d12/d3d12_video_encoder_references_manager_h264.cpp

index dbdd7a9..e068bc5 100644 (file)
@@ -63,7 +63,7 @@ d3d12_video_encoder_references_manager_h264::reset_gop_tracking_and_dpb()
 
    // After clearing the DPB, outstanding used allocations should be 1u only for the first allocation for the
    // reconstructed picture of the initial IDR in the GOP
-   assert(m_rDPBStorageManager.get_number_of_in_use_allocations() == m_gopHasInterFrames ? 1u : 0u);
+   assert(m_rDPBStorageManager.get_number_of_in_use_allocations() == (m_gopHasInterFrames ? 1u : 0u));
    assert(m_rDPBStorageManager.get_number_of_tracked_allocations() <=
           (m_MaxDPBCapacity + 1));   // pool is not extended beyond maximum expected usage
 }