summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-07-06 15:25:23 -0600
committerBrian Paul <[email protected]>2016-07-08 12:53:20 -0600
commit599c333d07f3910bd67d3d4c9b169f1980594891 (patch)
tree11df46f501fb80bb866f7f1876ce6456e52843d0
parentc3c7ff014b531b18e87ddef920b20388a675ab94 (diff)
svga: silence a couple unused variable warnings
Signed-off-by: Brian Paul <[email protected]>
-rw-r--r--src/gallium/drivers/svga/svga_swtnl_draw.c3
-rw-r--r--src/gallium/drivers/svga/svga_tgsi_insn.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_swtnl_draw.c b/src/gallium/drivers/svga/svga_swtnl_draw.c
index 67d1fae9d1a..faebfdeebc1 100644
--- a/src/gallium/drivers/svga/svga_swtnl_draw.c
+++ b/src/gallium/drivers/svga/svga_swtnl_draw.c
@@ -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;
diff --git a/src/gallium/drivers/svga/svga_tgsi_insn.c b/src/gallium/drivers/svga/svga_tgsi_insn.c
index a7fa6a22dec..0e200136b6c 100644
--- a/src/gallium/drivers/svga/svga_tgsi_insn.c
+++ b/src/gallium/drivers/svga/svga_tgsi_insn.c
@@ -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) ||