ac/llvm: make AC_ARG_FLOAT equal to AC_ARG_INT
Nothing cares about the type anymore. Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36696>
This commit is contained in:
@@ -24,8 +24,8 @@ enum ac_arg_regfile
|
||||
enum ac_arg_type
|
||||
{
|
||||
AC_ARG_INVALID = -1,
|
||||
AC_ARG_FLOAT,
|
||||
AC_ARG_INT,
|
||||
AC_ARG_FLOAT = AC_ARG_INT,
|
||||
AC_ARG_CONST_ADDR,
|
||||
};
|
||||
|
||||
|
||||
@@ -3568,8 +3568,6 @@ void ac_export_mrt_z(struct ac_llvm_context *ctx, LLVMValueRef depth, LLVMValueR
|
||||
static LLVMTypeRef arg_llvm_type(enum ac_arg_type type, unsigned size, struct ac_llvm_context *ctx)
|
||||
{
|
||||
switch (type) {
|
||||
case AC_ARG_FLOAT:
|
||||
return size == 1 ? ctx->f32 : LLVMVectorType(ctx->f32, size);
|
||||
case AC_ARG_INT:
|
||||
return size == 1 ? ctx->i32 : LLVMVectorType(ctx->i32, size);
|
||||
case AC_ARG_CONST_ADDR:
|
||||
|
||||
Reference in New Issue
Block a user