Module: Mesa Branch: main Commit: 568f61787a5cd1a69c799d935c364138ff415a1e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=568f61787a5cd1a69c799d935c364138ff415a1e
Author: Vinson Lee <v...@freedesktop.org> Date: Fri Dec 29 00:08:24 2023 -0800 ac/rgp: Fix single-bit-bitfield-constant-conversion warning ../src/amd/common/ac_rgp.c:119:48: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion] 119 | header->flags.is_semaphore_queue_timing_etw = 1; | ^ ~ Fixes: ed0c8522437 ("radv: add initial SQTT files generation support") Signed-off-by: Vinson Lee <v...@freedesktop.org> Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26839> --- src/amd/common/ac_rgp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/amd/common/ac_rgp.c b/src/amd/common/ac_rgp.c index 8664b01a2ef..496bc739f69 100644 --- a/src/amd/common/ac_rgp.c +++ b/src/amd/common/ac_rgp.c @@ -79,9 +79,9 @@ struct sqtt_file_chunk_header { struct sqtt_file_header_flags { union { struct { - int32_t is_semaphore_queue_timing_etw : 1; - int32_t no_queue_semaphore_timestamps : 1; - int32_t reserved : 30; + uint32_t is_semaphore_queue_timing_etw : 1; + uint32_t no_queue_semaphore_timestamps : 1; + uint32_t reserved : 30; }; uint32_t value;