diff options
author | Michal Krol <[email protected]> | 2009-12-30 22:18:53 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-12-30 22:18:53 +0100 |
commit | 543b9566bdaa48fea2df1866fa1310c1cdbcde27 (patch) | |
tree | 3c07b2f7a34c075b6b65a33e4e8a04144e57bde8 /src/gallium/drivers/svga | |
parent | 5754185d39c147cd81b97fd331ccf78aebfad5e7 (diff) |
Add lame support for instanceID to draw module.
It's all screaming for integer support -- fake it with float for now.
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_state_vs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_state_vs.c b/src/gallium/drivers/svga/svga_state_vs.c index 114de1a49e1..82e7874e2a8 100644 --- a/src/gallium/drivers/svga/svga_state_vs.c +++ b/src/gallium/drivers/svga/svga_state_vs.c @@ -194,6 +194,7 @@ static int update_zero_stride( struct svga_context *svga, key.output_stride = 4 * sizeof(float); key.nr_elements = 1; + key.element[0].type = TRANSLATE_ELEMENT_NORMAL; key.element[0].input_format = vel->src_format; key.element[0].output_format = PIPE_FORMAT_R32G32B32A32_FLOAT; key.element[0].input_buffer = vel->vertex_buffer_index; |