mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
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: ed0c852243 ("radv: add initial SQTT files generation support")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26839>
This commit is contained in:
parent
1e5bc00715
commit
568f61787a
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue