aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_render_translate.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-12-19 02:54:43 +0100
committerMarek Olšák <[email protected]>2010-12-19 04:05:34 +0100
commit237880463d5168cad8df0bae6018b5fd76617777 (patch)
tree074ba5ca428f075606c0dce67ac0abde3a3182ff /src/gallium/drivers/r300/r300_render_translate.c
parentc87f82bc40f90fd3fe7af74ffa4d7784c7d1b6b1 (diff)
r300g: optimize the fallback for misaligned ushort indices
Diffstat (limited to 'src/gallium/drivers/r300/r300_render_translate.c')
-rw-r--r--src/gallium/drivers/r300/r300_render_translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_render_translate.c b/src/gallium/drivers/r300/r300_render_translate.c
index 41a43b04de7..90b2f40be5f 100644
--- a/src/gallium/drivers/r300/r300_render_translate.c
+++ b/src/gallium/drivers/r300/r300_render_translate.c
@@ -204,7 +204,7 @@ void r300_translate_index_buffer(struct r300_context *r300,
break;
case 2:
- if (*start % 2 != 0 || index_offset) {
+ if (index_offset) {
util_rebuild_ushort_elts(&r300->context, index_buffer, index_offset, *start, count);
*start = 0;
r300->validate_buffers = TRUE;