mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
ac: remove unused nir2llvmtype()
The last use of this was removed in the previous patch. Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
fa29a9625e
commit
03086f86ae
1 changed files with 0 additions and 22 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue