intel/fs,vec4: Fix a compiler warning
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Nov 2018 15:23:56 +0000 (09:23 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 19 Nov 2018 15:57:41 +0000 (09:57 -0600)
commitdca35c598d1ac4c6abc27a842b7885f0b05ff1bc
treeb922af0179b450c3900b729681b36007bdd40b2a
parent060817b2fa50bd71dc6a9ece605238ba11fc67e9
intel/fs,vec4: Fix a compiler warning

../src/intel/compiler/brw_fs_nir.cpp:3534:46: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
       assert(nir_intrinsic_write_mask(instr) ==
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
              (1 << instr->num_components) - 1);
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This was caused by 6339aba775ecdc which added these completely valid
checks.  However clang likes to complain about signedness mismatches.

Fixes: 6339aba775ecdc "intel/compiler: Lower SSBO and shared..."
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
src/intel/compiler/brw_fs_nir.cpp
src/intel/compiler/brw_vec4_nir.cpp