diff options
author | Marek Olšák <[email protected]> | 2010-12-25 14:39:35 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-12-25 16:07:13 +0100 |
commit | 9c448817f7d62ae885019d816a7ecbc2c7bc34c1 (patch) | |
tree | 0874c422c9d932b7e701230ebed15acd2cc9ec3a /src/gallium/drivers/r300 | |
parent | b10bff11350014e1bb49b0ce18704fdd66e850c0 (diff) |
r300g: user index buffers are always aligned
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r-- | src/gallium/drivers/r300/r300_render.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index 2a363a3bc9e..142538b3657 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -577,7 +577,8 @@ static void r300_draw_range_elements(struct pipe_context* pipe, r300_update_derived_state(r300); /* Fallback for misaligned ushort indices. */ - if (indexSize == 2 && (start & 1)) { + if (indexSize == 2 && (start & 1) && + !r300_buffer_is_user_buffer(indexBuffer)) { struct pipe_transfer *transfer; struct pipe_resource *userbuf; |