gallium/draw: remove trailing whitespace

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15418>
This commit is contained in:
Dylan Baker
2022-03-16 14:15:04 -07:00
parent 4ac2503b7a
commit d9d092696d
3 changed files with 12 additions and 12 deletions
+7 -7
View File
@@ -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;
+4 -4
View File
@@ -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;
+1 -1
View File
@@ -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,