summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_vertex.h
Commit message (Collapse)AuthorAgeFilesLines
* draw: fix vs/fs input/output mismatchesZack Rusin2013-05-301-0/+7
| | | | | | | | | | | | When we've changed draw_find_shader_output to return -1 instead of 0 on non found attribs we broke the default behavior of draw, which was to always redirect those to the first (0th) slot. To preserve that behavior if draw_emit_vertex_attr notices a mismatched vertex attrib, it just redirects it to the first slot (instead of trying to use negative index in an array). Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: José Fonseca <jfonseca@vmware.com>
* draw: fixup draw_find_shader_outputZack Rusin2013-05-251-1/+1
| | | | | | | | | | | | | | | | | draw_find_shader_output like most of the code in draw used to depend on position always being at output slot 0. which meant that any other attribute being at 0 could signify an error. unfortunately position can be at any of the output slots, thus other attributes can occupy slot 0 and we need to mark the ones which were not found by something else. This commit changes draw_find_shader_output so that it returns -1 if it can't find the given attribute and adjust the code that depended on it returning >0 whenever it correctly found an attrib. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: José Fonseca<jfonseca@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
* draw: fix assertion failure in draw_emit_vertex_attrMarek Olšák2012-10-311-2/+3
| | | | | | | | | | | This is a regression since b3921e1f53833420e0a0fd581f7417. The array stores VS outputs, not FS inputs. Now llvmpipe can do 32 varyings too. NOTE: This is a candidate for the stable branches. Reviewed-by: Brian Paul <brianp@vmware.com>
* draw: Fix return type of draw_translate_vinfo_size.Vinson Lee2010-08-041-1/+1
| | | | Fixes typo from commit b609cfc7c9c38f26e7e6d6f7dd5dd6d38f4ed209.
* draw: Cosmetic cleanups and comments.José Fonseca2010-04-181-2/+2
|
* draw: Add EMIT_4UB_BGRA formatJakob Bornecrantz2010-03-261-1/+6
| | | | Needed for i915g, also fixed swizzle in draw_vs_aos_io.
* draw: Use translate function instead of switch casesJakob Bornecrantz2010-03-261-2/+26
|
* draw: Add missing includes.José Fonseca2010-02-011-0/+2
|
* draw: Use size_t (for x86_64).José Fonseca2009-03-251-5/+4
|
* draw: Do not specify types in bitfields.José Fonseca2008-12-301-3/+3
| | | | As advised by gcc -pedantic.
* draw: Fix compiler errors on Windows.Michal Krol2008-10-061-3/+3
|
* make draw's vertex_info struct smaller/quicker to compare with memcmp()Keith Whitwell2008-10-061-7/+37
|
* draw: support psize in vs_varient pathsKeith Whitwell2008-05-271-0/+21
| | | | | Preserve the vinfo "EMIT_*" format descriptors in the varient key, and deal with PSIZE directly in each implementation.
* draw: rearrange debug codeKeith Whitwell2008-04-191-0/+2
|
* remove usage of vertex_headerKeith Whitwell2008-04-101-2/+0
|
* gallium: added new EMIT_HEADER tokenBrian2008-03-131-0/+1
| | | | | | Used to emit the struct vertex_header info for softpipe. Before we were using the EMIT_ALL token but that's insufficient for the draw pass-through mode. EMIT_ALL might get removed soon...
* Code reorganization: s/aux/auxiliary/.José Fonseca2008-02-151-0/+111
"aux" is a reserved name on Windows (X_X)