mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
intel/compiler: fix -Wsign-compare warning
Explicitly convert to signed integer. Conversion is valid since is the
same (implicitly) used to initialize the loop. Avoids the warning:
../../src/intel/compiler/brw_fs.cpp: In member function ‘bool fs_visitor::lower_simd_width()’:
../../src/intel/compiler/brw_fs.cpp:5761:45: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
split_inst.eot = inst->eot && i == n - 1;
~~^~~~~~~~
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
7df5f62768
commit
4a29ee1861
1 changed files with 1 additions and 1 deletions
|
|
@ -5758,7 +5758,7 @@ fs_visitor::lower_simd_width()
|
|||
*/
|
||||
fs_inst split_inst = *inst;
|
||||
split_inst.exec_size = lower_width;
|
||||
split_inst.eot = inst->eot && i == n - 1;
|
||||
split_inst.eot = inst->eot && i == int(n - 1);
|
||||
|
||||
/* Select the correct channel enables for the i-th group, then
|
||||
* transform the sources and destination and emit the lowered
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue