Commit faa86bc9 by Gert Wollny Committed by Commit Bot

Capture/Replay: Serialize only a hash of the shader binary

It doesn't make much sense to keep the actual values and it makes the diff needlessly large when the binaries differ. Bug: angleproject:5856 Change-Id: I55664d6cb60ef680669c1243c2eabcb67cd4db23 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2822256 Commit-Queue: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 6d2f9cb4
...@@ -920,7 +920,7 @@ void SerializeShaderState(JsonSerializer *json, const gl::ShaderState &shaderSta ...@@ -920,7 +920,7 @@ void SerializeShaderState(JsonSerializer *json, const gl::ShaderState &shaderSta
json->addCString("Type", gl::ShaderTypeToString(shaderState.getShaderType())); json->addCString("Type", gl::ShaderTypeToString(shaderState.getShaderType()));
json->addScalar("Version", shaderState.getShaderVersion()); json->addScalar("Version", shaderState.getShaderVersion());
json->addScalar("TranslatedSource", shaderState.getTranslatedSource()); json->addScalar("TranslatedSource", shaderState.getTranslatedSource());
json->addVector("CompiledBinary", shaderState.getCompiledBinary()); json->addVectorAsHash("CompiledBinary", shaderState.getCompiledBinary());
json->addScalar("Source", shaderState.getSource()); json->addScalar("Source", shaderState.getSource());
SerializeWorkGroupSize(json, shaderState.getLocalSize()); SerializeWorkGroupSize(json, shaderState.getLocalSize());
SerializeShaderVariablesVector(json, shaderState.getInputVaryings()); SerializeShaderVariablesVector(json, shaderState.getInputVaryings());
......
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