mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-18 01:40:35 +02:00
i965: add MAYBE_UNUSED to assert param
This fixes an unused variable warning on release builds. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
437d7e1baf
commit
df4ff31d3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue