summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-05-02 15:49:35 +0800
committerChia-I Wu <[email protected]>2013-05-03 11:59:10 +0800
commit5dd3bd70a1758988c9bb1f3317bcfee9db346588 (patch)
tree91b3243fc15c669430ad135269a55db3b58d1f72 /src/gallium/auxiliary/draw
parent185692e72c5031cd8b46f1e26c1539ea4c226e21 (diff)
draw: use u_assembled_prim() instead of u_assembled_primitive()
The latter function is also removed as a result of the change. Signed-off-by: Chia-I Wu <[email protected]> Acked-by: Zack Rusin <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r--src/gallium/auxiliary/draw/draw_prim_assembler.c4
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_prim_assembler.c b/src/gallium/auxiliary/draw/draw_prim_assembler.c
index 4da24a6e7dc..9bedeeadb44 100644
--- a/src/gallium/auxiliary/draw/draw_prim_assembler.c
+++ b/src/gallium/auxiliary/draw/draw_prim_assembler.c
@@ -180,7 +180,7 @@ draw_prim_assembler_run(struct draw_context *draw,
{
struct draw_assembler asmblr;
unsigned start, i;
- unsigned assembled_prim = u_assembled_primitive(input_prims->prim);
+ unsigned assembled_prim = u_assembled_prim(input_prims->prim);
unsigned max_primitives = u_decomposed_prims_for_vertices(
input_prims->prim, input_prims->count);
unsigned max_verts = u_vertices_per_prim(assembled_prim) * max_primitives;
@@ -194,7 +194,7 @@ draw_prim_assembler_run(struct draw_context *draw,
output_prims->linear = TRUE;
output_prims->elts = NULL;
output_prims->start = 0;
- output_prims->prim = u_assembled_primitive(input_prims->prim);
+ output_prims->prim = u_assembled_prim(input_prims->prim);
output_prims->flags = 0x0;
output_prims->primitive_lengths = MALLOC(sizeof(unsigned));
output_prims->primitive_lengths[0] = 0;
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
index 8d66c885436..400511cee4a 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
@@ -71,7 +71,7 @@ static void fetch_pipeline_prepare( struct draw_pt_middle_end *middle,
unsigned instance_id_index = ~0;
const unsigned gs_out_prim = (gs ? gs->output_primitive :
- u_assembled_primitive(prim));
+ u_assembled_prim(prim));
/* Add one to num_outputs because the pipeline occasionally tags on
* an additional texcoord, eg for AA lines.