OSDN Git Service

Add support for OpMatrixTimesScalar
authorChris Forbes <chrisforbes@google.com>
Wed, 27 Mar 2019 20:16:20 +0000 (09:16 +1300)
committerChris Forbes <chrisforbes@google.com>
Thu, 28 Mar 2019 05:07:49 +0000 (05:07 +0000)
For us this works identically to OpVectorTimesScalar.

Bug: b/126873455
Test: dEQP-VK.glsl.matrix.mul.*
Change-Id: Ied8df4af108249a2f0d888d238db497209d01049
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28128
Tested-by: Chris Forbes <chrisforbes@google.com>
Presubmit-Ready: Chris Forbes <chrisforbes@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Pipeline/SpirvShader.cpp

index 82a76ff..f68af02 100644 (file)
@@ -358,6 +358,7 @@ namespace sw
                        case spv::OpCompositeExtract:
                        case spv::OpVectorShuffle:
                        case spv::OpVectorTimesScalar:
+                       case spv::OpMatrixTimesScalar:
                        case spv::OpVectorExtractDynamic:
                        case spv::OpVectorInsertDynamic:
                        case spv::OpNot: // Unary ops
@@ -1468,6 +1469,7 @@ namespace sw
                        return EmitVectorInsertDynamic(insn, state);
 
                case spv::OpVectorTimesScalar:
+               case spv::OpMatrixTimesScalar:
                        return EmitVectorTimesScalar(insn, state);
 
                case spv::OpNot: