Commit 01b4c0a0 by Nicolas Capens

Attempt skipping D3D11 shader optimization if compilation fails.

BUG=angle:648,chromium:371868 Change-Id: I1de854aad6e002bd1349f08eb8d6b597c535c90b Reviewed-on: https://chromium-review.googlesource.com/199354Tested-by: 's avatarNicolas Capens <nicolascapens@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent d73fe375
......@@ -2908,13 +2908,15 @@ ShaderExecutable *Renderer11::compileToExecutable(gl::InfoLog &infoLog, const ch
const UINT extraFlags[] =
{
flags,
flags | D3DCOMPILE_SKIP_VALIDATION
flags | D3DCOMPILE_SKIP_VALIDATION,
flags | D3DCOMPILE_SKIP_OPTIMIZATION
};
const static char *extraFlagNames[] =
{
"default",
"skip validation"
"skip validation",
"skip optimization"
};
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