Commit 4b34ee3d by Jamie Madill

Fix comparison of specialization constant keys.

The code in VkPipelineCache was correctly comparing all the attributes of the specialization constants and then was also doing a faulty shared pointer comparison. This was causing major drag on draw calls as every draw call in ANGLE was recompiling the shader. Bug: angleproject:4426 Change-Id: Ia0466738eb7de78c0c3b53e61e2f2bc6831bbcca Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/41688 Kokoro-Presubmit: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 4d40271e
......@@ -93,7 +93,7 @@ bool PipelineCache::SpirvShaderKey::SpecializationInfo::operator<(const Speciali
}
}
return (info < specializationInfo.info);
return false;
}
PipelineCache::SpirvShaderKey::SpirvShaderKey(const VkShaderStageFlagBits pipelineStage,
......
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