summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/translate/translate.h
Commit message (Collapse)AuthorAgeFilesLines
* draw/translate: fix instancingZack Rusin2013-06-281-0/+4
| | | | | | | | | | | | | | | | | | We were incorrectly computing the buffer offset when using the instances. The buffer offset is always equal to: start_instance * stride + (instance_num / instance_divisor) * stride We were completely ignoring the start instance quite often producing instances that completely wrong, e.g. if start instance = 5, instance divisor = 2, then on the first iteration it should be: 5 * stride, not (5/2) * stride as we'd have currently, and if start instance = 1, instance divisor = 3, then on the first iteration it should be: 1 * stride, not 0 as we'd have. This fixes it and adjusts all the code to the changes. Signed-off-by: Zack Rusin <[email protected]>
* translate: remove unused prototypesBrian Paul2010-10-251-9/+0
|
* translate: use function typedefs, casts to silence warningsBrian Paul2010-10-251-23/+31
|
* translate: add support for 8/16-bit indicesLuca Barbieri2010-08-161-0/+12
| | | | | Currently, only 32-bit indices are supported, but some use cases translate needs support for all types.
* translate: allow clients to ask for supported output formatsLuca Barbieri2010-08-111-0/+3
| | | | | | | | | | | | | Currently translate asserts on unsupported output formats, making it impossible to use for some purposes, such as testing whether it actually works on all formats it supports. Removing the assert was met with opposition, so this change allows clients to ask whether an output format is supported, and they are thus able to avoid attempting to use it. Since this is just an addition to the API, no adverse effect is possible, and it makes the testsuite work again.
* translate: Take and respect a max_index argument.José Fonseca2010-04-261-1/+2
|
* Add lame support for instanceID to draw module.Michal Krol2009-12-301-0/+6
| | | | It's all screaming for integer support -- fake it with float for now.
* Implement instanced indexed draw.Michal Krol2009-12-301-0/+1
|
* Implement draw_arrays_instanced() in softpipe.Michal Krol2009-12-291-0/+2
| | | | | Modify the translate module to respect instance divisors and accept instance id as a parameter to calculate input vertex offset.
* translate: Fix translate_key_compare().Michal Krol2009-12-291-2/+7
| | | | Sizes of translate keys must also match.
* translate: pull in prefetch and other optimizations from draw_vs_aos.cKeith Whitwell2008-11-141-2/+2
|
* translate: Draw can request up to PIPE_MAX_ATTRIBS + 1 vertex elements.José Fonseca2008-08-141-1/+1
|
* translate: mark functions as PIPE_CDECLKeith Whitwell2008-05-231-9/+9
|
* translate: helper functions for mimizing cost of key comparesKeith Whitwell2008-05-121-0/+21
|
* draw: only fill in / compare the part of the translate key we're using.Keith Whitwell2008-05-081-3/+2
| | | | | It's quite a big struct & we examine it a lot (too much). Reduce the impact of this by just looking at the active part where possible.
* Create a sharable translate_cache and use it.Zack Rusin2008-04-231-1/+0
|
* translate: add sse version based on old draw_vf_sse.cKeith Whitwell2008-04-181-0/+4
|
* gallium: Switch one vertex path over to new translate moduleKeith Whitwell2008-04-151-7/+29
| | | | | Will eventually do this for all instances where we are converting vertices from one format to another.
* gallium: add a generic vertex (or other) buffer translation moduleKeith Whitwell2008-04-151-0/+82