radv/rra: Remove useless variable

Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25548>
This commit is contained in:
Konstantin Seurer
2023-09-30 21:58:21 +02:00
parent dc813288c3
commit 46dddb57f9

View File

@@ -1126,13 +1126,11 @@ radv_rra_dump_trace(VkQueue vk_queue, char *filename)
if (result != VK_SUCCESS)
return result;
uint32_t accel_struct_count = _mesa_hash_table_num_entries(device->rra_trace.accel_structs);
uint64_t *accel_struct_offsets = calloc(accel_struct_count, sizeof(uint64_t));
uint32_t struct_count = _mesa_hash_table_num_entries(device->rra_trace.accel_structs);
uint64_t *accel_struct_offsets = calloc(struct_count, sizeof(uint64_t));
if (!accel_struct_offsets)
return VK_ERROR_OUT_OF_HOST_MEMORY;
uint32_t struct_count = _mesa_hash_table_num_entries(device->rra_trace.accel_structs);
struct hash_entry **hash_entries = malloc(sizeof(*hash_entries) * struct_count);
if (!hash_entries) {
free(accel_struct_offsets);