diff --git a/src/dxso/dxso_compiler.cpp b/src/dxso/dxso_compiler.cpp index 14622e290..4c4e47c68 100644 --- a/src/dxso/dxso_compiler.cpp +++ b/src/dxso/dxso_compiler.cpp @@ -2360,12 +2360,7 @@ namespace dxvk { result.type.ctype = dst.type.ctype; result.type.ccount = componentCount; - DxsoVectorType scalarType; - scalarType.ctype = result.type.ctype; - scalarType.ccount = 1; - const uint32_t typeId = getVectorTypeId(result.type); - const uint32_t scalarTypeId = getVectorTypeId(scalarType); DxsoRegMask srcMask(true, true, true, dotCount == 4); std::array indices; @@ -2374,9 +2369,9 @@ namespace dxvk { DxsoRegister src1 = ctx.src[1]; for (uint32_t i = 0; i < componentCount; i++) { - indices[i] = m_module.opDot(scalarTypeId, - emitRegisterLoad(src0, srcMask).id, - emitRegisterLoad(src1, srcMask).id); + indices[i] = emitDot( + emitRegisterLoad(src0, srcMask), + emitRegisterLoad(src1, srcMask)).id; src1.id.num++; }