mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
anv: Use unreachable instead of assert(!"...")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34014>
This commit is contained in:
parent
72066928bf
commit
d4a2ed8970
2 changed files with 2 additions and 2 deletions
|
|
@ -1200,7 +1200,7 @@ anv_cmd_buffer_add_secondary(struct anv_cmd_buffer *primary,
|
|||
break;
|
||||
}
|
||||
default:
|
||||
assert(!"Invalid execution mode");
|
||||
unreachable("Invalid execution mode");
|
||||
}
|
||||
|
||||
anv_reloc_list_append(&primary->surface_relocs, &secondary->surface_relocs);
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ VkResult genX(CreateQueryPool)(
|
|||
uint64s_per_slot = 1 + 1; /* availability + length of written bitstream data */
|
||||
break;
|
||||
default:
|
||||
assert(!"Invalid query type");
|
||||
unreachable("Invalid query type");
|
||||
}
|
||||
|
||||
if (!vk_multialloc_zalloc2(&ma, &device->vk.alloc, pAllocator,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue