svga: silence a couple unused variable warnings

Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Brian Paul
2016-07-06 15:25:23 -06:00
parent c3c7ff014b
commit 599c333d07
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ svga_swtnl_draw_vbo(struct svga_context *svga,
struct pipe_transfer *ib_transfer = NULL;
struct pipe_transfer *cb_transfer[SVGA_MAX_CONST_BUFS] = { 0 };
struct draw_context *draw = svga->swtnl.draw;
unsigned i, old_num_vertex_buffers;
MAYBE_UNUSED unsigned old_num_vertex_buffers;
unsigned i;
const void *map;
enum pipe_error ret;
@@ -669,6 +669,7 @@ submit_op4(struct svga_shader_emitter *emit,
* in one slot at least:
*/
assert(type1 == SVGA3DREG_SAMPLER);
(void) type1;
if (type0 == SVGA3DREG_CONST &&
((type3 == SVGA3DREG_CONST && src0.base.num != src3.base.num) ||