diff options
author | Marek Olšák <[email protected]> | 2010-04-26 05:04:07 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-04-26 07:22:00 +0200 |
commit | b9e637e8cf1cba99c138f5ca2d79ae5afefb1020 (patch) | |
tree | 03b454aa5775157279e98f3e43c62aad122c9f21 /src/gallium/drivers/r300/r300_render.c | |
parent | 537d117ed57734d034560cc64fe1bed65a6375e3 (diff) |
r300g: force prefetch for non-indexed vertices
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_render.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index 23b61df89cc..8e2acc4ac32 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -574,7 +574,7 @@ void r300_draw_range_elements(struct pipe_context* pipe, r300_reserve_cs_space(r300, r300_get_num_dirty_dwords(r300) + 128); r300_emit_buffer_validate(r300, TRUE, indexBuffer); r300_emit_dirty_state(r300); - r300_emit_aos(r300, 0); + r300_emit_aos(r300, 0, TRUE); u_upload_flush(r300->upload_vb); u_upload_flush(r300->upload_ib); @@ -595,7 +595,7 @@ void r300_draw_range_elements(struct pipe_context* pipe, if (count && r300_reserve_cs_space(r300, 16)) { r300_emit_buffer_validate(r300, TRUE, indexBuffer); r300_emit_dirty_state(r300); - r300_emit_aos(r300, 0); + r300_emit_aos(r300, 0, TRUE); } } while (count); } @@ -650,12 +650,12 @@ void r300_draw_arrays(struct pipe_context* pipe, unsigned mode, r300_emit_dirty_state(r300); if (alt_num_verts || count <= 65535) { - r300_emit_aos(r300, start); + r300_emit_aos(r300, start, FALSE); r300->emit_draw_arrays(r300, mode, count); } else { do { short_count = MIN2(count, 65535); - r300_emit_aos(r300, start); + r300_emit_aos(r300, start, FALSE); r300->emit_draw_arrays(r300, mode, short_count); start += short_count; |