[Mesa-dev] [PATCH 13/59] intel/compiler: simplify f2*64 opcodes

Iago Toral Quiroga itoral at igalia.com
Tue Dec 4 07:16:37 UTC 2018


Now that this case only handles 64-bit destinations we can simplify
a bit the code.
---
 src/intel/compiler/brw_fs_nir.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp
index 6c765fc2661..3eba8a478f5 100644
--- a/src/intel/compiler/brw_fs_nir.cpp
+++ b/src/intel/compiler/brw_fs_nir.cpp
@@ -833,7 +833,7 @@ fs_visitor::nir_emit_alu(const fs_builder &bld, nir_alu_instr *instr)
        * 64-bit need to have the source data elements aligned to 64-bit.
        * This restriction does not apply to BDW and later.
        */
-      if (type_sz(result.type) == 8 && type_sz(op[0].type) < 8 &&
+      if (type_sz(op[0].type) < 8 &&
           (devinfo->is_cherryview || gen_device_info_is_9lp(devinfo))) {
          fs_reg tmp = bld.vgrf(result.type, 1);
          tmp = subscript(tmp, op[0].type, 0);
-- 
2.17.1



More information about the mesa-dev mailing list