Mesa (master): vc4: Drop unused vpm_offset value.

Eric Anholt anholt at kemper.freedesktop.org
Wed Jul 29 03:03:35 UTC 2015


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

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Jul 28 19:59:45 2015 -0700

vc4: Drop unused vpm_offset value.

It's been dead since we started doing VS/CS attr offset setup during
shader compile.

---

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

diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c
index 1c7f3b1..ff749fd 100644
--- a/src/gallium/drivers/vc4/vc4_draw.c
+++ b/src/gallium/drivers/vc4/vc4_draw.c
@@ -195,7 +195,6 @@ vc4_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
         cl_u32(&shader_rec, 0); /* UBO offset written by kernel */
 
         uint32_t max_index = 0xffff;
-        uint32_t vpm_offset = 0;
         for (int i = 0; i < vtx->num_elements; i++) {
                 struct pipe_vertex_element *elem = &vtx->pipe[i];
                 struct pipe_vertex_buffer *vb =
@@ -214,8 +213,6 @@ vc4_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
                 cl_u8(&shader_rec, vc4->prog.vs->vattr_offsets[i]);
                 cl_u8(&shader_rec, vc4->prog.cs->vattr_offsets[i]);
 
-                vpm_offset += align(elem_size, 4);
-
                 if (vb->stride > 0) {
                         max_index = MIN2(max_index,
                                          (vb_size - elem_size) / vb->stride);




More information about the mesa-commit mailing list