Browse Source

i965: Silence uninitialized variable warning.

Silences this GCC warning.
brw_fs.cpp: In member function 'void fs_visitor::split_virtual_grfs()':
brw_fs.cpp:2516: warning: unused variable 'reg'
tags/android-x86-2.2
Vinson Lee 15 years ago
parent
commit
d11db2a857
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/mesa/drivers/dri/i965/brw_fs.cpp

+ 1
- 0
src/mesa/drivers/dri/i965/brw_fs.cpp View File

@@ -2515,6 +2515,7 @@ fs_visitor::split_virtual_grfs()
for (int j = 2; j < this->virtual_grf_sizes[i]; j++) {
int reg = virtual_grf_alloc(1);
assert(reg == new_virtual_grf[i] + j - 1);
(void) reg;
}
this->virtual_grf_sizes[i] = 1;
}

Loading…
Cancel
Save