summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2016-10-04 11:15:04 +1100
committerTimothy Arceri <timothy.arceri@collabora.com>2016-10-05 10:13:52 +1100
commitdf4ff31d3c1d907c237ed0e699deec1e24e8a9d3 (patch)
tree0120ebd426363832813e2469786c5ccdae003789 /src/mesa/drivers/dri/i965/brw_fs.cpp
parent437d7e1bafedeea5c69e495b57c215977c727617 (diff)
downloadexternal_mesa3d-df4ff31d3c1d907c237ed0e699deec1e24e8a9d3.zip
external_mesa3d-df4ff31d3c1d907c237ed0e699deec1e24e8a9d3.tar.gz
external_mesa3d-df4ff31d3c1d907c237ed0e699deec1e24e8a9d3.tar.bz2
i965: add MAYBE_UNUSED to assert param
This fixes an unused variable warning on release builds. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index dc000d9..58f5415 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -5866,7 +5866,7 @@ fs_visitor::allocate_registers(bool allow_spilling)
schedule_instructions(SCHEDULE_POST);
if (last_scratch > 0) {
- unsigned max_scratch_size = 2 * 1024 * 1024;
+ MAYBE_UNUSED unsigned max_scratch_size = 2 * 1024 * 1024;
prog_data->total_scratch = brw_get_scratch_size(last_scratch);