diff options
author | Timothy Arceri <timothy.arceri@collabora.com> | 2016-08-29 12:13:52 +1000 |
---|---|---|
committer | Timothy Arceri <timothy.arceri@collabora.com> | 2016-08-30 09:29:26 +1000 |
commit | 5025e88703092cff45868d1637aa517d937081d7 (patch) | |
tree | b992c001c0900b99384d8af630fc865a4f0c30b2 /src/compiler/spirv | |
parent | f4314d06e8b7ac2ecd0adf67a885f9af84dcf557 (diff) | |
download | external_mesa3d-5025e88703092cff45868d1637aa517d937081d7.zip external_mesa3d-5025e88703092cff45868d1637aa517d937081d7.tar.gz external_mesa3d-5025e88703092cff45868d1637aa517d937081d7.tar.bz2 |
spirv: replace assert with unreachable
Fixes uninitialised warning for coord_components.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/compiler/spirv')
-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 ca404d8..fda38f9 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) |