diff options
author | Zack Rusin <zack@tungstengraphics.com> | 2008-04-14 12:27:24 -0400 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2008-04-14 12:27:24 -0400 |
commit | e3309197855b5caf7c4c167d1e7beedf33ed2fdd (patch) | |
tree | 62da46cce8915788cc5a1370c717f9e85a30b4e4 /src/gallium/auxiliary/draw/draw_vs_sse.c | |
parent | 871d39ec8c168fa58d8758013e99da63fa58111d (diff) | |
download | external_mesa3d-e3309197855b5caf7c4c167d1e7beedf33ed2fdd.zip external_mesa3d-e3309197855b5caf7c4c167d1e7beedf33ed2fdd.tar.gz external_mesa3d-e3309197855b5caf7c4c167d1e7beedf33ed2fdd.tar.bz2 |
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_sse.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_vs_sse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_sse.c b/src/gallium/auxiliary/draw/draw_vs_sse.c index 92b9947..ee0a310 100644 --- a/src/gallium/auxiliary/draw/draw_vs_sse.c +++ b/src/gallium/auxiliary/draw/draw_vs_sse.c @@ -83,7 +83,8 @@ vs_sse_run( struct draw_vertex_shader *base, struct draw_context *draw, const unsigned *elts, unsigned count, - void *vOut ) + void *vOut, + unsigned vertex_size ) { struct draw_sse_vertex_shader *shader = (struct draw_sse_vertex_shader *)base; struct tgsi_exec_machine *machine = &draw->machine; @@ -136,7 +137,7 @@ vs_sse_run( struct draw_vertex_shader *base, 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); x = out->clip[0] = machine->Outputs[0].xyzw[0].f[j]; y = out->clip[1] = machine->Outputs[0].xyzw[1].f[j]; |