Mesa (master): vc4: Drop redundant index size setting.

Eric Anholt anholt at kemper.freedesktop.org
Fri Dec 12 07:53:11 UTC 2014


Module: Mesa
Branch: master
Commit: 5b3c0d999c38ef51ece422010cdb836fbbaffe0e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b3c0d999c38ef51ece422010cdb836fbbaffe0e

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Dec 11 20:34:57 2014 -0800

vc4: Drop redundant index size setting.

This is already done at set_index_buffer() time.

---

 src/gallium/drivers/vc4/vc4_draw.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c
index 2d82462..79d7d73 100644
--- a/src/gallium/drivers/vc4/vc4_draw.c
+++ b/src/gallium/drivers/vc4/vc4_draw.c
@@ -218,7 +218,6 @@ vc4_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
                 if (rsc->shadow_parent) {
                         vc4_update_shadow_index_buffer(pctx, &vc4->indexbuf);
                         offset = 0;
-                        index_size = 2;
                 }
 
                 cl_start_reloc(&vc4->bcl, 1);




More information about the mesa-commit mailing list