Commit d73fe375 by Nicolas Capens

Attempt skipping validation if D3D11 shader compilation fails.

Some shaders fail to compile with validation error messages that make no sense. BUG=angle:648,chromium:372016 Change-Id: Ief0e28efa6bc7eaa483c95f45c00ce4f9f20e541 Reviewed-on: https://chromium-review.googlesource.com/199353Tested-by: 's avatarNicolas Capens <nicolascapens@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 286f54c5
...@@ -2907,12 +2907,14 @@ ShaderExecutable *Renderer11::compileToExecutable(gl::InfoLog &infoLog, const ch ...@@ -2907,12 +2907,14 @@ ShaderExecutable *Renderer11::compileToExecutable(gl::InfoLog &infoLog, const ch
// Try the default flags first and if compilation fails, try some alternatives. // Try the default flags first and if compilation fails, try some alternatives.
const UINT extraFlags[] = const UINT extraFlags[] =
{ {
flags flags,
flags | D3DCOMPILE_SKIP_VALIDATION
}; };
const static char *extraFlagNames[] = const static char *extraFlagNames[] =
{ {
"default" "default",
"skip validation"
}; };
int attempts = ArraySize(extraFlags); int attempts = ArraySize(extraFlags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment