util/indices: formatting, whitespace fixes in u_unfilled_indices.c

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
Brian Paul 2016-05-13 16:46:26 -06:00
parent 24eadb4810
commit 26de558072
1 changed files with 7 additions and 12 deletions

View File

@ -87,8 +87,8 @@ static void generate_linear_uint( unsigned start,
* needed to draw the primitive with fill mode = PIPE_POLYGON_MODE_LINE using
* separate lines (PIPE_PRIM_LINES).
*/
static unsigned nr_lines( unsigned prim,
unsigned nr )
static unsigned
nr_lines(unsigned prim, unsigned nr)
{
switch (prim) {
case PIPE_PRIM_TRIANGLES:
@ -110,7 +110,6 @@ static unsigned nr_lines( unsigned prim,
}
enum indices_mode
u_unfilled_translator(unsigned prim,
unsigned in_index_size,
@ -130,13 +129,11 @@ u_unfilled_translator(unsigned prim,
*out_index_size = (in_index_size == 4) ? 4 : 2;
out_idx = out_size_idx(*out_index_size);
if (unfilled_mode == PIPE_POLYGON_MODE_POINT)
{
if (unfilled_mode == PIPE_POLYGON_MODE_POINT) {
*out_prim = PIPE_PRIM_POINTS;
*out_nr = nr;
switch (in_index_size)
{
switch (in_index_size) {
case 1:
*out_translate = translate_ubyte_ushort;
return U_TRANSLATE_NORMAL;
@ -189,7 +186,6 @@ u_unfilled_generator(unsigned prim,
out_idx = out_size_idx(*out_index_size);
if (unfilled_mode == PIPE_POLYGON_MODE_POINT) {
if (*out_index_size == 4)
*out_generate = generate_linear_uint;
else
@ -208,4 +204,3 @@ u_unfilled_generator(unsigned prim,
return U_GENERATE_REUSABLE;
}
}