util/indices: formatting, whitespace fixes in u_unfilled_indices.c
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
24eadb4810
commit
26de558072
|
@ -87,8 +87,8 @@ static void generate_linear_uint( unsigned start,
|
||||||
* needed to draw the primitive with fill mode = PIPE_POLYGON_MODE_LINE using
|
* needed to draw the primitive with fill mode = PIPE_POLYGON_MODE_LINE using
|
||||||
* separate lines (PIPE_PRIM_LINES).
|
* separate lines (PIPE_PRIM_LINES).
|
||||||
*/
|
*/
|
||||||
static unsigned nr_lines( unsigned prim,
|
static unsigned
|
||||||
unsigned nr )
|
nr_lines(unsigned prim, unsigned nr)
|
||||||
{
|
{
|
||||||
switch (prim) {
|
switch (prim) {
|
||||||
case PIPE_PRIM_TRIANGLES:
|
case PIPE_PRIM_TRIANGLES:
|
||||||
|
@ -110,7 +110,6 @@ static unsigned nr_lines( unsigned prim,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
enum indices_mode
|
enum indices_mode
|
||||||
u_unfilled_translator(unsigned prim,
|
u_unfilled_translator(unsigned prim,
|
||||||
unsigned in_index_size,
|
unsigned in_index_size,
|
||||||
|
@ -130,13 +129,11 @@ u_unfilled_translator(unsigned prim,
|
||||||
*out_index_size = (in_index_size == 4) ? 4 : 2;
|
*out_index_size = (in_index_size == 4) ? 4 : 2;
|
||||||
out_idx = out_size_idx(*out_index_size);
|
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_prim = PIPE_PRIM_POINTS;
|
||||||
*out_nr = nr;
|
*out_nr = nr;
|
||||||
|
|
||||||
switch (in_index_size)
|
switch (in_index_size) {
|
||||||
{
|
|
||||||
case 1:
|
case 1:
|
||||||
*out_translate = translate_ubyte_ushort;
|
*out_translate = translate_ubyte_ushort;
|
||||||
return U_TRANSLATE_NORMAL;
|
return U_TRANSLATE_NORMAL;
|
||||||
|
@ -189,7 +186,6 @@ u_unfilled_generator(unsigned prim,
|
||||||
out_idx = out_size_idx(*out_index_size);
|
out_idx = out_size_idx(*out_index_size);
|
||||||
|
|
||||||
if (unfilled_mode == PIPE_POLYGON_MODE_POINT) {
|
if (unfilled_mode == PIPE_POLYGON_MODE_POINT) {
|
||||||
|
|
||||||
if (*out_index_size == 4)
|
if (*out_index_size == 4)
|
||||||
*out_generate = generate_linear_uint;
|
*out_generate = generate_linear_uint;
|
||||||
else
|
else
|
||||||
|
@ -208,4 +204,3 @@ u_unfilled_generator(unsigned prim,
|
||||||
return U_GENERATE_REUSABLE;
|
return U_GENERATE_REUSABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue