About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm.h2
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_arit_overflow.c13
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_const.h4
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp2
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_flow.c2
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_format_aos.c2
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c4
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_jit_sample.c2
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_jit_types.c6
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c8
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c2
11 files changed, 23 insertions, 24 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.h b/src/gallium/auxiliary/draw/draw_llvm.h
index 5d0f01c27a2..39d2e62f084 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.h
+++ b/src/gallium/auxiliary/draw/draw_llvm.h
@@ -387,7 +387,7 @@ struct draw_llvm_variant
LLVMTypeRef resources_type;
LLVMTypeRef resources_ptr_type;
-
+
LLVMTypeRef buffer_type;
LLVMTypeRef buffer_ptr_type;
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit_overflow.c b/src/gallium/auxiliary/gallivm/lp_bld_arit_overflow.c
index ff5d020259e..3bf00faf538 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_arit_overflow.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_arit_overflow.c
@@ -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
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_const.h b/src/gallium/auxiliary/gallivm/lp_bld_const.h
index ebd6d942258..6d9d5410d69 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_const.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_const.h
@@ -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);
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index 26d7ad76faa..c0540a85092 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -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);
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_flow.c b/src/gallium/auxiliary/gallivm/lp_bld_flow.c
index ff3440cf803..4fde85b948e 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_flow.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_flow.c
@@ -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;
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
index ed9c0ba520b..8a7d5717d95 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
@@ -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) {
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c b/src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c
index 0f0c5810ae9..e1006808bf4 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c
@@ -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);
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_jit_sample.c b/src/gallium/auxiliary/gallivm/lp_bld_jit_sample.c
index a650c884d2c..6c0e732183b 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_jit_sample.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_jit_sample.c
@@ -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;
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_jit_types.c b/src/gallium/auxiliary/gallivm/lp_bld_jit_types.c
index 6a453207193..c98349a844a 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_jit_types.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_jit_types.c
@@ -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;
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c
index 0e63a961ddf..e21023b8319 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c
@@ -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;
}
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
index d31760ae7e4..e8965e1628b 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c
@@ -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,