From f0178f516f5f96c599592d86c3975234264fefc5 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 11 Mar 2020 16:07:18 +0100 Subject: radv: fix 32-bits build (again) Fixes: dcfc08f5b8a ("radv/sqtt: describe begin/end command buffers with user markers") Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/layers/radv_sqtt_layer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/amd/vulkan/layers/radv_sqtt_layer.c b/src/amd/vulkan/layers/radv_sqtt_layer.c index fb262409772..5f61937367f 100644 --- a/src/amd/vulkan/layers/radv_sqtt_layer.c +++ b/src/amd/vulkan/layers/radv_sqtt_layer.c @@ -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; -- cgit v1.2.3