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>
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 =
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 =