Commit 9265d1e2 by Lubosz Sarnecki Committed by Commit Bot

frame_capture_utils: Do not serialize 0 bindings.

Since we are only interested in the difference to non-default states, bindings with a zero ID should not be serialized. This resolves the comparision error in the GetTexLevelParameterTest.* tests. The test now do not need to be skipped. Bug: angleproject:5645 Change-Id: I887bc22b52a201c467c00c42f6ddb3b38895a7c4 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2739726Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Commit-Queue: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
parent ff16821c
......@@ -85,7 +85,11 @@ void SerializeBindingPointerVector(
{
for (size_t i = 0; i < bindingPointerVector.size(); i++)
{
bos->writeInt(bindingPointerVector[i].id().value);
// Do not serialize zero bindings, as this will create unwanted diffs
if (bindingPointerVector[i].id().value != 0)
{
bos->writeInt(bindingPointerVector[i].id().value);
}
}
}
......
......@@ -26,7 +26,6 @@ DifferentStencilMasksTest.*
EGLContextASANTest.*
EGLContextSharingTest.TextureLifetime/*
FramebufferTest.MultiContextNoRenderingFeedbackLoops/*
GetTexLevelParameterTest.ExtensionStringExposed/*
GLSLTest.InactiveVaryingInVertexActiveInFragment/*
InstancingTest.LineLoop/*
MaxTextureSizeTest.*
......@@ -113,5 +112,4 @@ MipmapTest.DISABLED_ThreeLevelsInitData/*
# Compile failed tests
GetImageTest.*
GetTexLevelParameterTest.Queries/*
RobustResourceInitTest.*
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