summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_vs_exec.c
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2008-04-14 12:27:24 -0400
committerZack Rusin <zack@tungstengraphics.com>2008-04-14 12:27:24 -0400
commite3309197855b5caf7c4c167d1e7beedf33ed2fdd (patch)
tree62da46cce8915788cc5a1370c717f9e85a30b4e4 /src/gallium/auxiliary/draw/draw_vs_exec.c
parent871d39ec8c168fa58d8758013e99da63fa58111d (diff)
pass vertex size to shaders so that callee can decide on the size
of the vertices and not always have to use the maximum vertex allocation size for them
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs_exec.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_vs_exec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_exec.c b/src/gallium/auxiliary/draw/draw_vs_exec.c
index 27cf060cc9..5c88c2e24e 100644
--- a/src/gallium/auxiliary/draw/draw_vs_exec.c
+++ b/src/gallium/auxiliary/draw/draw_vs_exec.c
@@ -69,7 +69,8 @@ vs_exec_run( struct draw_vertex_shader *shader,
struct draw_context *draw,
const unsigned *elts,
unsigned count,
- void *vOut )
+ void *vOut,
+ unsigned vertex_size)
{
struct tgsi_exec_machine *machine = &draw->machine;
unsigned int i, j;
@@ -107,7 +108,7 @@ vs_exec_run( struct draw_vertex_shader *shader,
unsigned slot;
float x, y, z, w;
struct vertex_header *out =
- draw_header_from_block(vOut, i + j);
+ draw_header_from_block(vOut, vertex_size, i + j);
/* Handle attr[0] (position) specially:
*