diff options
author | Timothy Arceri <[email protected]> | 2016-08-29 12:13:52 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-08-30 09:29:26 +1000 |
commit | 5025e88703092cff45868d1637aa517d937081d7 (patch) | |
tree | b992c001c0900b99384d8af630fc865a4f0c30b2 /src/compiler/spirv/spirv_to_nir.c | |
parent | f4314d06e8b7ac2ecd0adf67a885f9af84dcf557 (diff) |
spirv: replace assert with unreachable
Fixes uninitialised warning for coord_components.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/spirv/spirv_to_nir.c')
-rw-r--r-- | src/compiler/spirv/spirv_to_nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index ca404d8beb3..fda38f91106 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -1426,7 +1426,7 @@ vtn_handle_texture(struct vtn_builder *b, SpvOp opcode, coord_components = 3; break; default: - assert("Invalid sampler type"); + unreachable("Invalid sampler type"); } if (is_array && texop != nir_texop_lod) |