nir, vk: fix MSVC unused variable warning
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38663>
This commit is contained in:
Aleksi Sapon 2025-11-25 13:55:53 -05:00 committed by Marge Bot
parent dcaf64102f
commit cef4102548
2 changed files with 3 additions and 2 deletions

View file

@ -191,7 +191,7 @@ struct u_sparse_bitset *
nir_get_live_defs(nir_cursor cursor, void *mem_ctx)
{
nir_block *block = nir_cursor_current_block(cursor);
nir_function_impl *impl = nir_cf_node_get_function(&block->cf_node);
ASSERTED nir_function_impl *impl = nir_cf_node_get_function(&block->cf_node);
assert(impl->valid_metadata & nir_metadata_live_defs);
switch (cursor.option) {

View file

@ -1349,7 +1349,8 @@ vk_get_graphics_pipeline_compile_info(struct vk_graphics_pipeline_compile_info *
}
}
VkResult result = vk_graphics_pipeline_state_fill(device, info->state,
ASSERTED VkResult result = vk_graphics_pipeline_state_fill(device,
info->state,
pCreateInfo,
NULL /* driver_rp */,
0 /* driver_rp_flags */,