diff options
author | Keith Whitwell <[email protected]> | 2008-06-10 14:46:25 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-06-10 14:48:57 +0100 |
commit | ad44e68706877ab06929747e7a82c718c1c27e02 (patch) | |
tree | d0653cb37c63c82d52e83c5842682fdc2c36f45c /src/gallium/auxiliary/draw/draw_pt_fetch.c | |
parent | 14a13e3767f080a48a4ae01f803dd0bc8754f441 (diff) |
draw: no need to rearrange most primitives in vcache for flatshade-first
The driver/pipeline will still be applying flatshade-first state to the
triangles emitted from vcache, so there's no need to rotate the vertices
of most primitives. The only exception is POLYGON, as explained in the
code.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch.c b/src/gallium/auxiliary/draw/draw_pt_fetch.c index 07f4c991642..b8fd3aa1d86 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch.c @@ -114,7 +114,10 @@ void draw_pt_fetch_prepare( struct pt_fetch *fetch, fetch->translate = translate_cache_find(fetch->cache, &key); { - static struct vertex_header vh = { 0, 1, 0, 0xffff }; + static struct vertex_header vh = { 0, + 1, /* edgeflag */ + 0, + 0xffff }; fetch->translate->set_buffer(fetch->translate, draw->pt.nr_vertex_buffers, &vh, |