Commit 0b3bd1a7 authored by Samuel Pitoiset's avatar Samuel Pitoiset

radv: fix 32-bit compiler warnings

Closes: #2031Signed-off-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen's avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
parent 50b3ec35
......@@ -248,7 +248,7 @@ radv_dump_descriptors(struct radv_device *device, FILE *f)
fprintf(f, "Descriptors:\n");
for (i = 0; i < MAX_SETS; i++) {
struct radv_descriptor_set *set =
(struct radv_descriptor_set *)ptr[i + 3];
*(struct radv_descriptor_set **)(ptr + i + 3);
radv_dump_descriptor_set(device, set, i, f);
}
......@@ -497,7 +497,7 @@ radv_get_saved_graphics_pipeline(struct radv_device *device)
{
uint64_t *ptr = (uint64_t *)device->trace_id_ptr;
return (struct radv_pipeline *)ptr[1];
return *(struct radv_pipeline **)(ptr + 1);
}
static struct radv_pipeline *
......@@ -505,7 +505,7 @@ radv_get_saved_compute_pipeline(struct radv_device *device)
{
uint64_t *ptr = (uint64_t *)device->trace_id_ptr;
return (struct radv_pipeline *)ptr[2];
return *(struct radv_pipeline **)(ptr + 2);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment