diff options
author | Michal Krol <[email protected]> | 2009-12-29 23:21:01 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-12-29 23:21:01 +0100 |
commit | 7ca0ce38340144794267609646048b3820d594ab (patch) | |
tree | 7c31399f0373cb652b682e9af0fedde839d58a77 /src/gallium/auxiliary/translate/translate.h | |
parent | 7124fa16efe0f8ffb402bcd182f276032bed378d (diff) |
Implement draw_arrays_instanced() in softpipe.
Modify the translate module to respect instance divisors and accept
instance id as a parameter to calculate input vertex offset.
Diffstat (limited to 'src/gallium/auxiliary/translate/translate.h')
-rw-r--r-- | src/gallium/auxiliary/translate/translate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/translate/translate.h b/src/gallium/auxiliary/translate/translate.h index 1afdf194b31..fb298471b8b 100644 --- a/src/gallium/auxiliary/translate/translate.h +++ b/src/gallium/auxiliary/translate/translate.h @@ -50,6 +50,7 @@ struct translate_element enum pipe_format output_format; unsigned input_buffer:8; unsigned input_offset:24; + unsigned instance_divisor; unsigned output_offset; }; @@ -79,6 +80,7 @@ struct translate { void (PIPE_CDECL *run)( struct translate *, unsigned start, unsigned count, + unsigned instance_id, void *output_buffer); }; |