radv: fix 32-bits build (again)
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 11 Mar 2020 15:07:18 +0000 (16:07 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 19:30:13 +0000 (19:30 +0000)
Fixes: dcfc08f5b8a ("radv/sqtt: describe begin/end command buffers with user markers")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4044>

src/amd/vulkan/layers/radv_sqtt_layer.c

index fb262409772498c965757745a3ca7fcde85d1e17..5f61937367fd089923d093c02a3df534a33ce049 100644 (file)
@@ -402,7 +402,7 @@ radv_write_event_with_dims_marker(struct radv_cmd_buffer *cmd_buffer,
 void
 radv_describe_begin_cmd_buffer(struct radv_cmd_buffer *cmd_buffer)
 {
-       uint64_t device_id = (uint64_t)cmd_buffer->device;
+       uint64_t device_id = (uintptr_t)cmd_buffer->device;
        struct rgp_sqtt_marker_cb_start marker = {};
        struct radeon_cmdbuf *cs = cmd_buffer->cs;
 
@@ -427,7 +427,7 @@ radv_describe_begin_cmd_buffer(struct radv_cmd_buffer *cmd_buffer)
 void
 radv_describe_end_cmd_buffer(struct radv_cmd_buffer *cmd_buffer)
 {
-       uint64_t device_id = (uint64_t)cmd_buffer->device;
+       uint64_t device_id = (uintptr_t)cmd_buffer->device;
        struct rgp_sqtt_marker_cb_end marker = {};
        struct radeon_cmdbuf *cs = cmd_buffer->cs;