diff options
author | Marek Olšák <[email protected]> | 2011-10-03 21:45:15 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-10-04 17:45:53 +0200 |
commit | 5506f6ef966b8883e575a3f60ce96ad42ee6ffd2 (patch) | |
tree | 790597ce16265ed84def59cf70eae0f43aa2d38e /src | |
parent | 8fd39be38329f2432555d7384f78de9a615265f4 (diff) |
r300g: fix rendering with a non-zero index bias in draw_elements_immediate
NOTE: This is a candidate for the stable branches.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r300/r300_render.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index dad6d2fbf5f..a9a9ae69e15 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -521,7 +521,9 @@ static void r300_draw_elements_immediate(struct r300_context *r300, PREP_INDEXED, NULL, 2+count_dwords, 0, info->index_bias, -1)) return; - r300_emit_draw_init(r300, info->mode, info->min_index, info->max_index); + r300_emit_draw_init(r300, info->mode, + info->min_index + info->index_bias, + info->max_index + info->index_bias); BEGIN_CS(2 + count_dwords); OUT_CS_PKT3(R300_PACKET3_3D_DRAW_INDX_2, count_dwords); |