nvc0/ir: add support for all the new int64 tgsi opcodes
[mesa.git] / src / gallium / drivers / nouveau / codegen / nv50_ir_target.cpp
index 273ec34fd3bf0287931751b2bb4028cc12fb91a8..298e7c6ef9b14a664b585e9aff5c41ba88ffbdca 100644 (file)
@@ -392,7 +392,8 @@ Program::emitBinary(struct nv50_ir_prog_info *info)
          for (Instruction *i = fn->bbArray[b]->getEntry(); i; i = i->next) {
             emit->emitInstruction(i);
             info->bin.instructions++;
-            if (i->sType == TYPE_F64 || i->dType == TYPE_F64)
+            if ((typeSizeof(i->sType) == 8 || typeSizeof(i->dType) == 8) &&
+                (isFloatType(i->sType) || isFloatType(i->dType)))
                info->io.fp64 = true;
          }
       }