radeonsi: fix/silence unused variable warnings in optimized builds
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 4 Nov 2016 09:39:45 +0000 (10:39 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 10 Nov 2016 12:18:16 +0000 (13:18 +0100)
commitb21912e2e92234d66c90b0f6f014a83698ef5ecb
treebc133f2458fd108264e5011c81cc291efae9fa51
parentb46a9c570f431d3953a3ba31ffe76ad17568e522
radeonsi: fix/silence unused variable warnings in optimized builds

I'm leaving num_out_sgpr around since it's not in a fast path, and besides
the compiler should be able to optimize it away easily. The alternative
with #if/#endif would be extremely ugly.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_dma.c
src/gallium/drivers/radeonsi/si_shader.c