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:
Matt Turner 2025-03-11 15:53:42 -04:00 committed by Marge Bot
parent 72066928bf
commit d4a2ed8970
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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,