[Mesa-dev] [PATCH 3/3] intel: compiler: silence compiler warning
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Thu Jul 5 11:14:01 UTC 2018
src/intel/compiler/brw_fs.cpp:5752:45: warning: comparison between
signed and unsigned integer expressions [-Wsign-compare]
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
src/intel/compiler/brw_fs.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp
index c8062de4ffb..fde06ddfc17 100644
--- a/src/intel/compiler/brw_fs.cpp
+++ b/src/intel/compiler/brw_fs.cpp
@@ -5689,7 +5689,7 @@ fs_visitor::lower_simd_width()
/* Split the copies in chunks of the execution width of either the
* original or the lowered instruction, whichever is lower.
*/
- const unsigned n = DIV_ROUND_UP(inst->exec_size, lower_width);
+ const int n = DIV_ROUND_UP(inst->exec_size, lower_width);
const unsigned dst_size = inst->size_written /
inst->dst.component_size(inst->exec_size);
--
2.18.0
More information about the mesa-dev
mailing list