freedreno/a3xx,a4xx: silence some warnings
authorRob Clark <robclark@freedesktop.org>
Fri, 27 Feb 2015 02:06:02 +0000 (21:06 -0500)
committerRob Clark <robclark@freedesktop.org>
Tue, 3 Mar 2015 15:41:00 +0000 (10:41 -0500)
  fd3_emit.c: In function ‘fd3_emit_vertex_bufs’:
  fd3_emit.c:377:11: warning: unused variable ‘semantic’ [-Wunused-variable]
     uint8_t semantic = sem2name(vp->inputs[i].semantic);

and

  fd4_emit.c: In function ‘fd4_emit_vertex_bufs’:
  fd4_emit.c:304:11: warning: unused variable ‘semantic’ [-Wunused-variable]
     uint8_t semantic = sem2name(vp->inputs[i].semantic);

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_emit.c

index f1a17ec1dfb4aea151a1cfcd52e637117e2d567c..a5874e44ba86f5a8e87f35d2a0e64fb50fed469c 100644 (file)
@@ -374,8 +374,7 @@ fd3_emit_vertex_bufs(struct fd_ringbuffer *ring, struct fd3_emit *emit)
                return;
 
        for (i = 0, j = 0; i <= last; i++) {
-               uint8_t semantic = sem2name(vp->inputs[i].semantic);
-               assert(semantic == 0);
+               assert(sem2name(vp->inputs[i].semantic) == 0);
                if (vp->inputs[i].compmask) {
                        struct pipe_vertex_element *elem = &vtx->vtx->pipe[i];
                        const struct pipe_vertex_buffer *vb =
index 6540e1d29f42b17bfe21099ff09ae49915d9d680..37552cf3c0627681000ca02b39fcc2852318c4dd 100644 (file)
@@ -301,9 +301,7 @@ fd4_emit_vertex_bufs(struct fd_ringbuffer *ring, struct fd4_emit *emit)
                return;
 
        for (i = 0, j = 0; i <= last; i++) {
-               uint8_t semantic = sem2name(vp->inputs[i].semantic);
-               assert(semantic != TGSI_SEMANTIC_VERTEXID);
-               assert(semantic != TGSI_SEMANTIC_INSTANCEID);
+               assert(sem2name(vp->inputs[i].semantic) == 0);
                if (vp->inputs[i].compmask) {
                        struct pipe_vertex_element *elem = &vtx->vtx->pipe[i];
                        const struct pipe_vertex_buffer *vb =