Mesa (7.11): Revert "r300g: fix rendering with a non-zero index bias in draw_elements_immediate"

Marek Olšák mareko at kemper.freedesktop.org
Sat Oct 15 18:21:27 PDT 2011


Module: Mesa
Branch: 7.11
Commit: b9cc9166cf866e3eeb43f73e9a452f388a5ed859
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9cc9166cf866e3eeb43f73e9a452f388a5ed859

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun Oct 16 03:21:02 2011 +0200

Revert "r300g: fix rendering with a non-zero index bias in draw_elements_immediate"

This reverts commit b9c7773e0dbf75b9bf5142382fa4174a9f2f569f.

It breaks more things than it fixes.

---

 src/gallium/drivers/r300/r300_render.c |    4 +---
 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 5860671..535bdaf 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -545,9 +545,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);



More information about the mesa-commit mailing list