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>
This commit is contained in:
Ethan Nicholas 2019-03-14 14:04:43 -04:00 committed by Skia Commit-Bot
parent e5476bbe75
commit e77739eec2

View File

@ -1888,7 +1888,7 @@ SpvId SPIRVCodeGenerator::writeBinaryOperation(const Type& resultType,
} else { } else {
ABORT("invalid operandType: %s", operandType.description().c_str()); ABORT("invalid operandType: %s", operandType.description().c_str());
} }
if (resultType == operandType && !resultType.highPrecision()) { if (getActualType(resultType) == operandType && !resultType.highPrecision()) {
this->writeInstruction(SpvOpDecorate, result, SpvDecorationRelaxedPrecision, this->writeInstruction(SpvOpDecorate, result, SpvDecorationRelaxedPrecision,
fDecorationBuffer); fDecorationBuffer);
} }