From: Marek Olšák Date: Sat, 25 Dec 2010 13:39:35 +0000 (+0100) Subject: r300g: user index buffers are always aligned X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c448817f7d62ae885019d816a7ecbc2c7bc34c1;p=mesa.git r300g: user index buffers are always aligned --- 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;