diff options
author | Timothy Arceri <[email protected]> | 2018-01-22 18:26:12 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-01-29 11:14:23 +1100 |
commit | 03086f86aed1ae3d352e3a4276886aa50c97b2ff (patch) | |
tree | 19fa2346986417699b36905d42cfd6bba3d5aeb7 | |
parent | fa29a9625e5cd9f37ba55f872c9a0bb64d5b6c9c (diff) |
ac: remove unused nir2llvmtype()
The last use of this was removed in the previous patch.
Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index e9885a5a26d..6591d3caa43 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -156,28 +156,6 @@ nir_to_llvm_context_from_abi(struct ac_shader_abi *abi) return container_of(abi, ctx, abi); } -static LLVMTypeRef -nir2llvmtype(struct ac_nir_context *ctx, - const struct glsl_type *type) -{ - switch (glsl_get_base_type(glsl_without_array(type))) { - case GLSL_TYPE_UINT: - case GLSL_TYPE_INT: - return ctx->ac.i32; - case GLSL_TYPE_UINT64: - case GLSL_TYPE_INT64: - return ctx->ac.i64; - case GLSL_TYPE_DOUBLE: - return ctx->ac.f64; - case GLSL_TYPE_FLOAT: - return ctx->ac.f32; - default: - assert(!"Unsupported type in nir2llvmtype()"); - break; - } - return 0; -} - static LLVMValueRef get_sampler_desc(struct ac_nir_context *ctx, const nir_deref_var *deref, enum ac_descriptor_type desc_type, |