hasvk: 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 d4a2ed8970
commit f160787038
3 changed files with 3 additions and 4 deletions

View file

@ -1166,7 +1166,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, &primary->vk.pool->alloc,

View file

@ -2385,8 +2385,7 @@ emit_binding_table(struct anv_cmd_buffer *cmd_buffer,
break;
default:
assert(!"Invalid descriptor type");
continue;
unreachable("Invalid descriptor type");
}
assert(surface_state.map);
bt_map[s] = surface_state.offset + state_offset;

View file

@ -164,7 +164,7 @@ VkResult genX(CreateQueryPool)(
uint64s_per_slot = 1 + 2;
break;
default:
assert(!"Invalid query type");
unreachable("Invalid query type");
}
if (!vk_object_multialloc(&device->vk, &ma, pAllocator,