diff options
author | Marek Olšák <[email protected]> | 2010-05-26 20:59:46 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-05-26 22:22:52 +0200 |
commit | 3a6fd21917b7fb5a96bb60cd963f481ac5f989a6 (patch) | |
tree | a51678a49b197983945db4fe23d93820c2e4861b /src/gallium/drivers/r300/r300_render.c | |
parent | 55a6d3743436fb811dfa1825aabff82fb6610c04 (diff) |
r300g/swtcl: force vertex prefetching for non-indexed primitives
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_render.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index 041ae8036b6..a5d129449e6 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -191,7 +191,7 @@ static void r300_prepare_for_rendering(struct r300_context *r300, if (emit_aos) r300_emit_aos(r300, aos_offset, flags & PREP_INDEXED); if (emit_aos_swtcl) - r300_emit_aos_swtcl(r300); + r300_emit_aos_swtcl(r300, flags & PREP_INDEXED); } } @@ -997,8 +997,9 @@ static void r500_render_draw_elements(struct vbuf_render* render, CS_LOCALS(r300); - r300_prepare_for_rendering(r300, PREP_FIRST_DRAW | PREP_EMIT_AOS_SWTCL, - NULL, dwords, 0, 0); + r300_prepare_for_rendering(r300, + PREP_FIRST_DRAW | PREP_EMIT_AOS_SWTCL | PREP_INDEXED, + NULL, dwords, 0, 0); BEGIN_CS(dwords); OUT_CS_REG(R300_GA_COLOR_CONTROL, |