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,8 +85,12 @@ void SerializeBindingPointerVector( ...@@ -85,8 +85,12 @@ void SerializeBindingPointerVector(
{ {
for (size_t i = 0; i < bindingPointerVector.size(); i++) for (size_t i = 0; i < bindingPointerVector.size(); i++)
{ {
// Do not serialize zero bindings, as this will create unwanted diffs
if (bindingPointerVector[i].id().value != 0)
{
bos->writeInt(bindingPointerVector[i].id().value); bos->writeInt(bindingPointerVector[i].id().value);
} }
}
} }
template <class T> template <class T>
......
...@@ -26,7 +26,6 @@ DifferentStencilMasksTest.* ...@@ -26,7 +26,6 @@ DifferentStencilMasksTest.*
EGLContextASANTest.* EGLContextASANTest.*
EGLContextSharingTest.TextureLifetime/* EGLContextSharingTest.TextureLifetime/*
FramebufferTest.MultiContextNoRenderingFeedbackLoops/* FramebufferTest.MultiContextNoRenderingFeedbackLoops/*
GetTexLevelParameterTest.ExtensionStringExposed/*
GLSLTest.InactiveVaryingInVertexActiveInFragment/* GLSLTest.InactiveVaryingInVertexActiveInFragment/*
InstancingTest.LineLoop/* InstancingTest.LineLoop/*
MaxTextureSizeTest.* MaxTextureSizeTest.*
...@@ -113,5 +112,4 @@ MipmapTest.DISABLED_ThreeLevelsInitData/* ...@@ -113,5 +112,4 @@ MipmapTest.DISABLED_ThreeLevelsInitData/*
# Compile failed tests # Compile failed tests
GetImageTest.* GetImageTest.*
GetTexLevelParameterTest.Queries/*
RobustResourceInitTest.* 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