To match the usage at other places.
Signed-off-by: Boyan Ding <[email protected]>
---
src/compiler/spirv/vtn_variables.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/compiler/spirv/vtn_variables.c
b/src/compiler/spirv/vtn_variables.c
index e3845365bd..26a8ca369b 100644
--- a/src/compiler/spirv/vtn_variables.c
+++ b/src/compiler/spirv/vtn_variables.c
@@ -428,7 +428,7 @@ vtn_type_block_size(struct vtn_type *type)
return type->stride * glsl_get_length(type->type);
default:
- assert(!"Invalid block type");
+ unreachable("Invalid block type");
return 0;
}
}
@@ -691,7 +691,7 @@ vtn_block_load(struct vtn_builder *b, struct
vtn_access_chain *src)
vtn_access_chain_get_offset_size(src, &access_offset, &access_size);
break;
default:
- assert(!"Invalid block variable mode");
+ unreachable("Invalid block variable mode");
}
nir_ssa_def *offset, *index = NULL;
@@ -1248,7 +1248,7 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
nir_mode = nir_var_uniform;
b->shader->info->num_textures++;
} else {
- assert(!"Invalid uniform variable type");
+ unreachable("Invalid uniform variable type");
}
break;
case SpvStorageClassPushConstant:
--
2.11.0
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev