mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
d4a2ed8970
commit
f160787038
3 changed files with 3 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue