Mesa (main): gallium/draw: remove trailing whitespace
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Apr 22 17:20:45 UTC 2022
Module: Mesa
Branch: main
Commit: d9d092696d1ebb84b8f58aea098b94e6bb94c77e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d9d092696d1ebb84b8f58aea098b94e6bb94c77e
Author: Dylan Baker <dylan.c.baker at intel.com>
Date: Wed Mar 16 14:15:04 2022 -0700
gallium/draw: remove trailing whitespace
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15418>
---
src/gallium/auxiliary/draw/draw_gs.c | 14 +++++++-------
src/gallium/auxiliary/draw/draw_llvm.c | 8 ++++----
src/gallium/auxiliary/draw/draw_vs_llvm.c | 2 +-
3 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c
index 571709fd1b9..e84554bef31 100644
--- a/src/gallium/auxiliary/draw/draw_gs.c
+++ b/src/gallium/auxiliary/draw/draw_gs.c
@@ -323,13 +323,13 @@ llvm_fetch_gs_outputs(struct draw_geometry_shader *shader,
int current_verts = shader->llvm_emitted_vertices[i + (stream * shader->vector_length)];
int next_verts = shader->llvm_emitted_vertices[i + 1 + (stream * shader->vector_length)];
#if 0
- int j;
+ int j;
for (j = 0; j < current_verts; ++j) {
struct vertex_header *vh = (struct vertex_header *)
(output_ptr + shader->vertex_size * (i * next_prim_boundary + j));
debug_printf("--- %d) [%f, %f, %f, %f]\n", j + vertex_count,
vh->data[0][0], vh->data[0][1], vh->data[0][2], vh->data[0][3]);
-
+
}
#endif
debug_assert(current_verts <= shader->max_output_vertices);
@@ -354,7 +354,7 @@ llvm_fetch_gs_outputs(struct draw_geometry_shader *shader,
vh->data[j][0], vh->data[j][1], vh->data[j][2], vh->data[j][3],
udata[0], udata[1], udata[2], udata[3]);
}
-
+
}
}
#endif
@@ -471,8 +471,8 @@ static void gs_line(struct draw_geometry_shader *shader,
shader->fetched_prim_count);
++shader->in_prim_idx;
++shader->fetched_prim_count;
-
- if (draw_gs_should_flush(shader))
+
+ if (draw_gs_should_flush(shader))
gs_flush(shader);
}
@@ -832,12 +832,12 @@ draw_create_geometry_shader(struct draw_context *draw,
gs->max_output_vertices = 32;
/* Primitive boundary is bigger than max_output_vertices by one, because
- * the specification says that the geometry shader should exit if the
+ * the specification says that the geometry shader should exit if the
* number of emitted vertices is bigger or equal to max_output_vertices and
* we can't do that because we're running in the SoA mode, which means that
* our storing routines will keep getting called on channels that have
* overflown.
- * So we need some scratch area where we can keep writing the overflown
+ * So we need some scratch area where we can keep writing the overflown
* vertices without overwriting anything important or crashing.
*/
gs->primitive_boundary = gs->max_output_vertices + 1;
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index e0d0ebad07c..10f11d66af3 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_llvm.c
@@ -736,7 +736,7 @@ create_jit_types(struct draw_llvm_variant *variant)
buffer_type = create_jit_dvbuffer_type(gallivm, "draw_vertex_buffer");
variant->buffer_ptr_type = LLVMPointerType(buffer_type, 0);
-
+
vb_type = create_jit_vertex_buffer_type(gallivm, "pipe_vertex_buffer");
variant->vb_ptr_type = LLVMPointerType(vb_type, 0);
}
@@ -1341,7 +1341,7 @@ convert_to_aos(struct gallivm_state *gallivm,
{
LLVMValueRef iv =
LLVMBuildBitCast(builder, out, lp_build_int_vec_type(gallivm, soa_type), "");
-
+
lp_build_print_value(gallivm, " ival = ", iv);
}
#endif
@@ -1904,7 +1904,7 @@ draw_gs_llvm_epilogue(const struct lp_build_gs_iface *gs_base,
LLVMValueRef emitted_prims_ptr =
draw_gs_jit_emitted_prims(gallivm, variant->context_ptr);
LLVMValueRef stream_val = lp_build_const_int32(gallivm, stream);
-
+
emitted_verts_ptr = LLVMBuildGEP(builder, emitted_verts_ptr, &stream_val, 1, "");
emitted_prims_ptr = LLVMBuildGEP(builder, emitted_prims_ptr, &stream_val, 1, "");
@@ -2604,7 +2604,7 @@ draw_llvm_set_mapped_image(struct draw_context *draw,
void
-draw_llvm_set_sampler_state(struct draw_context *draw,
+draw_llvm_set_sampler_state(struct draw_context *draw,
enum pipe_shader_type shader_type)
{
unsigned i;
diff --git a/src/gallium/auxiliary/draw/draw_vs_llvm.c b/src/gallium/auxiliary/draw/draw_vs_llvm.c
index a605ee102fe..feb60768252 100644
--- a/src/gallium/auxiliary/draw/draw_vs_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_vs_llvm.c
@@ -111,7 +111,7 @@ draw_create_vs_llvm(struct draw_context *draw,
tgsi_scan_shader(state->tokens, &vs->base.info);
}
- vs->variant_key_size =
+ vs->variant_key_size =
draw_llvm_variant_key_size(
vs->base.info.file_max[TGSI_FILE_INPUT]+1,
MAX2(vs->base.info.file_max[TGSI_FILE_SAMPLER]+1,
More information about the mesa-commit
mailing list