mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-16 01:08:05 +02:00
r300g: fix rendering with a non-zero index bias in draw_elements_immediate
NOTE: This is a candidate for the stable branches.
(cherry picked from commit 5506f6ef96)
This commit is contained in:
parent
7d2ff4ae77
commit
b9c7773e0d
1 changed files with 3 additions and 1 deletions
|
|
@ -545,7 +545,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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue