commit | d569619d7d708ee920112980753777cfda6c7bfc | [log] [tgz] |
---|---|---|
author | Jamie Madill <jmadill@chromium.org> | Thu Oct 06 11:09:24 2016 -0400 |
committer | Jamie Madill <jmadill@chromium.org> | Thu Oct 06 17:05:19 2016 +0000 |
tree | 1b9d84712b603f452e4fe0e42a9e5bb6bbcf7fa2 | |
parent | 5b7d40b374c33d2bc84ef08922b4db0f4be6ca22 [diff] [blame] |
translator: Fail compilation if precision emu unsupported. The fuzzer uncovered a case where we were trying to emulate precision on HLSL 3.0, causing an ASSERT crash. BUG=chromium:653276 Change-Id: I2e666a1ff4f605541e25f04264146063559cb835 Reviewed-on: https://chromium-review.googlesource.com/394237 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Olli Etuaho <oetuaho@nvidia.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/src/compiler/translator/EmulatePrecision.h b/src/compiler/translator/EmulatePrecision.h index c2b9857..f23e40b 100644 --- a/src/compiler/translator/EmulatePrecision.h +++ b/src/compiler/translator/EmulatePrecision.h
@@ -32,6 +32,8 @@ const int shaderVersion, const ShShaderOutput outputLanguage); + static bool SupportedInLanguage(const ShShaderOutput outputLanguage); + private: struct TypePair {