summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-08-29 12:13:52 +1000
committerTimothy Arceri <[email protected]>2016-08-30 09:29:26 +1000
commit5025e88703092cff45868d1637aa517d937081d7 (patch)
treeb992c001c0900b99384d8af630fc865a4f0c30b2
parentf4314d06e8b7ac2ecd0adf67a885f9af84dcf557 (diff)
spirv: replace assert with unreachable
Fixes uninitialised warning for coord_components. Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r--src/compiler/spirv/spirv_to_nir.c2
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)