re-re-fixed RelaxedPrecision
Bug: skia:
Change-Id: I7c5eb70c49991cb272d31e7dfceeb1a1d58ec4bc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/201381
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Auto-Submit: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/sksl/SkSLSPIRVCodeGenerator.cpp b/src/sksl/SkSLSPIRVCodeGenerator.cpp
index c03b1ce..c1675be 100644
--- a/src/sksl/SkSLSPIRVCodeGenerator.cpp
+++ b/src/sksl/SkSLSPIRVCodeGenerator.cpp
@@ -1888,7 +1888,7 @@
} else {
ABORT("invalid operandType: %s", operandType.description().c_str());
}
- if (resultType == operandType && !resultType.highPrecision()) {
+ if (getActualType(resultType) == operandType && !resultType.highPrecision()) {
this->writeInstruction(SpvOpDecorate, result, SpvDecorationRelaxedPrecision,
fDecorationBuffer);
}