intel/fs: Fix a typo in need_matching_subreg_offset
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 2 Oct 2018 01:17:24 +0000 (20:17 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 2 Oct 2018 12:44:25 +0000 (07:44 -0500)
This fixes a bunch of Vulkan subgroup tests on little core platforms.

Fixes: 4150920b95 "intel/fs: Add a helper for emitting scan operations"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/compiler/brw_fs_builder.h

index 7bee2aa0b9b4d860244b61e371813fafc132427c..0cafaf50e565a08be031367981794784f58757cd 100644 (file)
@@ -795,7 +795,7 @@ namespace brw {
              !gen_device_info_is_9lp(shader->devinfo))
             return false;
 
-         if (type_sz(type > 4))
+         if (type_sz(type) > 4)
             return true;
 
          if (opcode == BRW_OPCODE_MUL &&