llvmpipe: Remove trailing whitespace
Signed-off-by: spencer-lunarg <spencer@lunarg.com> Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38202>
This commit is contained in:
committed by
Marge Bot
parent
af872180e1
commit
171581aeae
@@ -387,7 +387,7 @@ struct draw_llvm_variant
|
||||
|
||||
LLVMTypeRef resources_type;
|
||||
LLVMTypeRef resources_ptr_type;
|
||||
|
||||
|
||||
LLVMTypeRef buffer_type;
|
||||
LLVMTypeRef buffer_ptr_type;
|
||||
|
||||
|
||||
@@ -54,7 +54,6 @@
|
||||
|
||||
#include <float.h>
|
||||
|
||||
|
||||
static LLVMValueRef
|
||||
build_binary_int_overflow(struct gallivm_state *gallivm,
|
||||
const char *intr_prefix,
|
||||
@@ -103,7 +102,7 @@ build_binary_int_overflow(struct gallivm_state *gallivm,
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs unsigned addition of two integers and reports
|
||||
* Performs unsigned addition of two integers and reports
|
||||
* overflow if detected.
|
||||
*
|
||||
* The values @a and @b must be of the same integer type. If
|
||||
@@ -113,7 +112,7 @@ build_binary_int_overflow(struct gallivm_state *gallivm,
|
||||
* - if it's pointing to a valid value, then that variable,
|
||||
* which must be of i1 type, is ORed with the newly detected
|
||||
* overflow bit. This is done to allow chaining of a number of
|
||||
* overflow functions together without having to test the
|
||||
* overflow functions together without having to test the
|
||||
* overflow bit after every single one.
|
||||
*/
|
||||
LLVMValueRef
|
||||
@@ -127,7 +126,7 @@ lp_build_uadd_overflow(struct gallivm_state *gallivm,
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs unsigned subtraction of two integers and reports
|
||||
* Performs unsigned subtraction of two integers and reports
|
||||
* overflow if detected.
|
||||
*
|
||||
* The values @a and @b must be of the same integer type. If
|
||||
@@ -137,7 +136,7 @@ lp_build_uadd_overflow(struct gallivm_state *gallivm,
|
||||
* - if it's pointing to a valid value, then that variable,
|
||||
* which must be of i1 type, is ORed with the newly detected
|
||||
* overflow bit. This is done to allow chaining of a number of
|
||||
* overflow functions together without having to test the
|
||||
* overflow functions together without having to test the
|
||||
* overflow bit after every single one.
|
||||
*/
|
||||
LLVMValueRef
|
||||
@@ -151,7 +150,7 @@ lp_build_usub_overflow(struct gallivm_state *gallivm,
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs unsigned multiplication of two integers and
|
||||
* Performs unsigned multiplication of two integers and
|
||||
* reports overflow if detected.
|
||||
*
|
||||
* The values @a and @b must be of the same integer type. If
|
||||
@@ -161,7 +160,7 @@ lp_build_usub_overflow(struct gallivm_state *gallivm,
|
||||
* - if it's pointing to a valid value, then that variable,
|
||||
* which must be of i1 type, is ORed with the newly detected
|
||||
* overflow bit. This is done to allow chaining of a number of
|
||||
* overflow functions together without having to test the
|
||||
* overflow functions together without having to test the
|
||||
* overflow bit after every single one.
|
||||
*/
|
||||
LLVMValueRef
|
||||
|
||||
@@ -102,8 +102,8 @@ LLVMValueRef
|
||||
lp_build_const_channel_vec(struct gallivm_state *gallivm, struct lp_type type);
|
||||
|
||||
LLVMValueRef
|
||||
lp_build_const_aos(struct gallivm_state *gallivm, struct lp_type type,
|
||||
double r, double g, double b, double a,
|
||||
lp_build_const_aos(struct gallivm_state *gallivm, struct lp_type type,
|
||||
double r, double g, double b, double a,
|
||||
const unsigned char *swizzle);
|
||||
|
||||
|
||||
|
||||
@@ -382,7 +382,7 @@ lp_function_add_debug_info(gallivm_state *gallivm, LLVMValueRef func, LLVMTypeRe
|
||||
asprintf(&gallivm->file_name, "%s/%u.nir", LP_NIR_SHADER_DUMP_DIR, shader_index);
|
||||
|
||||
gallivm->file = LLVMDIBuilderCreateFile(gallivm->di_builder, gallivm->file_name, strlen(gallivm->file_name), ".", 1);
|
||||
|
||||
|
||||
LLVMDIBuilderCreateCompileUnit(
|
||||
gallivm->di_builder, LLVMDWARFSourceLanguageC11, gallivm->file, gallivm->file_name, strlen(gallivm->file_name),
|
||||
0, NULL, 0, 0, NULL, 0, LLVMDWARFEmissionFull, 0, 0, 0, "/", 1, "", 0);
|
||||
|
||||
@@ -228,7 +228,7 @@ void
|
||||
lp_build_loop_begin(struct lp_build_loop_state *state,
|
||||
struct gallivm_state *gallivm,
|
||||
LLVMValueRef start)
|
||||
|
||||
|
||||
{
|
||||
LLVMBuilderRef builder = gallivm->builder;
|
||||
|
||||
|
||||
@@ -431,7 +431,7 @@ lp_build_pack_rgba_aos(struct gallivm_state *gallivm,
|
||||
casted = LLVMBuildFPToSI(builder, scaled, LLVMVectorType(LLVMInt32TypeInContext(gallivm->context), 4), "");
|
||||
|
||||
shifted = LLVMBuildShl(builder, casted, LLVMConstVector(shifts, 4), "");
|
||||
|
||||
|
||||
/* Bitwise or all components */
|
||||
for (i = 0; i < 4; ++i) {
|
||||
if (desc->channel[i].type == UTIL_FORMAT_TYPE_UNSIGNED) {
|
||||
|
||||
@@ -1197,7 +1197,7 @@ s3tc_update_cache_access(struct gallivm_state *gallivm,
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
/**
|
||||
* Calculate 1/3(v1-v0) + v0 and 2*1/3(v1-v0) + v0.
|
||||
* The lerp is performed between the first 2 32bit colors
|
||||
* in the source vector, both results are returned packed in result vector.
|
||||
@@ -2012,7 +2012,7 @@ update_cached_block(struct gallivm_state *gallivm,
|
||||
args[0] = ptr_addr;
|
||||
args[1] = hash_index;
|
||||
args[2] = cache;
|
||||
|
||||
|
||||
LLVMBuildCall2(builder, function_type, function, args, ARRAY_SIZE(args), "");
|
||||
bb = LLVMGetInsertBlock(builder);
|
||||
inst = LLVMGetLastInstruction(bb);
|
||||
|
||||
@@ -607,7 +607,7 @@ lp_bld_llvm_image_soa_emit_size_query(const struct lp_build_image_soa *base,
|
||||
.target = params->target,
|
||||
.level_zero_only = params->ms,
|
||||
};
|
||||
|
||||
|
||||
lp_build_size_query_soa(gallivm, &state, &image->dynamic_state.base, params);
|
||||
|
||||
gallivm->texture_descriptor = old_texture;
|
||||
|
||||
@@ -235,11 +235,11 @@ lp_build_create_jit_image_type(struct gallivm_state *gallivm)
|
||||
elem_types[LP_JIT_IMAGE_HEIGHT] =
|
||||
elem_types[LP_JIT_IMAGE_DEPTH] = LLVMInt16TypeInContext(lc);
|
||||
elem_types[LP_JIT_IMAGE_NUM_SAMPLES] = LLVMInt8TypeInContext(lc);
|
||||
elem_types[LP_JIT_IMAGE_BASE] =
|
||||
elem_types[LP_JIT_IMAGE_BASE] =
|
||||
elem_types[LP_JIT_IMAGE_RESIDENCY] = LLVMPointerType(LLVMInt8TypeInContext(lc), 0);
|
||||
elem_types[LP_JIT_IMAGE_ROW_STRIDE] =
|
||||
elem_types[LP_JIT_IMAGE_IMG_STRIDE] =
|
||||
elem_types[LP_JIT_IMAGE_SAMPLE_STRIDE] =
|
||||
elem_types[LP_JIT_IMAGE_SAMPLE_STRIDE] =
|
||||
elem_types[LP_JIT_IMAGE_BASE_OFFSET] = LLVMInt32TypeInContext(lc);
|
||||
|
||||
image_type = LLVMStructTypeInContext(lc, elem_types,
|
||||
@@ -918,7 +918,7 @@ lp_build_image_function_type(struct gallivm_state *gallivm,
|
||||
|
||||
for (uint32_t i = 0; i < num_inputs; i++)
|
||||
arg_types[num_params++] = component_type;
|
||||
|
||||
|
||||
if (params->img_op == LP_IMG_LOAD_SPARSE) {
|
||||
LLVMTypeRef val_type[5];
|
||||
val_type[0] = val_type[1] = val_type[2] = val_type[3] = component_type;
|
||||
|
||||
@@ -361,7 +361,7 @@ group_op_mask_vec(struct lp_build_nir_soa_context *bld)
|
||||
{
|
||||
if (bld->shader->info.fs.require_full_quads)
|
||||
return mask_vec_with_helpers(bld);
|
||||
|
||||
|
||||
return mask_vec(bld);
|
||||
}
|
||||
|
||||
@@ -2892,7 +2892,7 @@ get_instr_src_vec(struct lp_build_nir_soa_context *bld, nir_instr *instr, uint32
|
||||
struct gallivm_state *gallivm = bld->base.gallivm;
|
||||
LLVMBuilderRef builder = gallivm->builder;
|
||||
|
||||
nir_src *src = NULL;
|
||||
nir_src *src = NULL;
|
||||
switch (instr->type) {
|
||||
case nir_instr_type_alu: {
|
||||
nir_alu_instr *alu = nir_instr_as_alu(instr);
|
||||
@@ -4259,7 +4259,7 @@ img_params_init_resource(struct lp_build_nir_soa_context *bld, struct lp_img_par
|
||||
params->image_index = nir_src_as_int(*src);
|
||||
else
|
||||
params->image_index_offset = get_src(bld, src, 0);
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -4274,7 +4274,7 @@ sampler_size_params_init_resource(struct lp_build_nir_soa_context *bld, struct l
|
||||
params->texture_unit = nir_src_as_int(*src);
|
||||
else
|
||||
params->texture_unit_offset = get_src(bld, src, 0);
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1181,7 +1181,7 @@ lp_build_sample_aos(struct lp_build_sample_context *bld,
|
||||
lp_build_else(&if_ctx);
|
||||
{
|
||||
/* Use the magnification filter */
|
||||
lp_build_sample_mipmap(bld,
|
||||
lp_build_sample_mipmap(bld,
|
||||
mag_filter, PIPE_TEX_MIPFILTER_NONE,
|
||||
s, t, r, offsets,
|
||||
ilevel0, NULL, NULL,
|
||||
|
||||
Reference in New Issue
Block a user