summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-10-31 16:10:23 +0100
committerSamuel Pitoiset <[email protected]>2019-11-06 08:00:33 +0100
commit0b3bd1a7c2d721de00670a69c1b7847b6c2214e8 (patch)
tree0dfb9a17d62fc3b6ef4474c7e0fc15052ff66026 /src/amd/vulkan
parent50b3ec35d2eba6087f5bb8c110a170575edb8a89 (diff)
radv: fix 32-bit compiler warnings
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2031 Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c
index 68d361f41dd..b8f74036fc6 100644
--- a/src/amd/vulkan/radv_debug.c
+++ b/src/amd/vulkan/radv_debug.c
@@ -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