Mesa (master): intel/fs: Fix a typo in need_matching_subreg_offset

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 2 12:44:45 UTC 2018


Module: Mesa
Branch: master
Commit: 7e7959fcb76da59e1cec8b704069210a1092e1dd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e7959fcb76da59e1cec8b704069210a1092e1dd

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Oct  1 20:17:24 2018 -0500

intel/fs: Fix a typo in need_matching_subreg_offset

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 at intel.com>
Tested-by: Mark Janes <mark.a.janes at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

---

 src/intel/compiler/brw_fs_builder.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_fs_builder.h b/src/intel/compiler/brw_fs_builder.h
index 7bee2aa0b9..0cafaf50e5 100644
--- a/src/intel/compiler/brw_fs_builder.h
+++ b/src/intel/compiler/brw_fs_builder.h
@@ -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 &&




More information about the mesa-commit mailing list