mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
radv: Fix warning in 32-bit build.
uintptr_t is 32 bits in a 32-bits build, resulting in shifting out of bounds. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
8ad3d8b178
commit
c837872fba
1 changed files with 3 additions and 2 deletions
|
|
@ -556,8 +556,9 @@ radv_save_pipeline(struct radv_cmd_buffer *cmd_buffer,
|
|||
assert(!"invalid ring type");
|
||||
}
|
||||
|
||||
data[0] = (uintptr_t)pipeline;
|
||||
data[1] = (uintptr_t)pipeline >> 32;
|
||||
uint64_t pipeline_address = (uintptr_t)pipeline;
|
||||
data[0] = pipeline_address;
|
||||
data[1] = pipeline_address >> 32;
|
||||
|
||||
radv_emit_write_data_packet(cmd_buffer, va, 2, data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue