aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-10-16 03:19:11 +0200
committerMarek Olšák <[email protected]>2011-10-16 03:19:11 +0200
commit1350882e4950bc957e60e68a685b8fea08693e13 (patch)
treec16c75b7dcb518e06d0710d902616e9a0413ac4e /src
parent4bcda856982cc428cba555367001f4db721a9aaf (diff)
Revert "r300g: fix rendering with a non-zero index bias in draw_elements_immediate"
This reverts commit 5506f6ef966b8883e575a3f60ce96ad42ee6ffd2. It breaks more things than it fixes.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r300/r300_render.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index a9a9ae69e15..dad6d2fbf5f 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -521,9 +521,7 @@ 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->index_bias,
- info->max_index + info->index_bias);
+ r300_emit_draw_init(r300, info->mode, info->min_index, info->max_index);
BEGIN_CS(2 + count_dwords);
OUT_CS_PKT3(R300_PACKET3_3D_DRAW_INDX_2, count_dwords);