swr/rast: Fix return type of VCVTPS2PH.
authorGeorge Kyriazis <george.kyriazis@intel.com>
Thu, 19 Apr 2018 18:15:31 +0000 (13:15 -0500)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Fri, 27 Apr 2018 19:36:41 +0000 (14:36 -0500)
expecting <8xi16> return.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py

index bced657..2e7f1a8 100644 (file)
@@ -53,7 +53,7 @@ intrinsics = [
     ['VPERMPS',     ['idx', 'a'], 'a'],
     ['VCVTPD2PS',   ['a'], 'VectorType::get(mFP32Ty, a->getType()->getVectorNumElements())'],
     ['VCVTPH2PS',   ['a'], 'VectorType::get(mFP32Ty, a->getType()->getVectorNumElements())'],
-    ['VCVTPS2PH',   ['a', 'round'], 'mSimdFP16Ty'],
+    ['VCVTPS2PH',   ['a', 'round'], 'mSimdInt16Ty'],
     ['VHSUBPS',     ['a', 'b'], 'a'],
     ['VPTESTC',     ['a', 'b'], 'mInt32Ty'],
     ['VPTESTZ',     ['a', 'b'], 'mInt32Ty'],