Commit 16b10a54 by Jamie Madill Committed by Angle LUCI CQ

Revert "Capture/Replay: Emit SetupReplay() late"

This reverts commit 54ba6f01. Reason for revert: breaks MEC. Bug: angleproject:5999 Original change's description: > Capture/Replay: Emit SetupReplay() late > > Only emit SetupReplay() after all captured frames have been run, > so that InitializeReplay() is called with values of > readBufferSize and the maxClientArraySize that are sufficiently > large for all frames. > > Bug: angleproject:5965 > Bug: angleproject:5895 > Change-Id: Ic59597dc27f733fb210d7cc5a144a86e54cd2040 > Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2894486 > Commit-Queue: Gert Wollny <gert.wollny@collabora.com> > Reviewed-by: Jamie Madill <jmadill@chromium.org> > Reviewed-by: Cody Northrop <cnorthrop@google.com> Bug: angleproject:5965 Bug: angleproject:5895 Change-Id: Ia901183b2052fa2b4552ad2e09818a2894fbdf6b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2911878Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org> Commit-Queue: Cody Northrop <cnorthrop@google.com>
parent 9ba86e06
...@@ -1071,6 +1071,24 @@ void WriteCppReplay(bool compression, ...@@ -1071,6 +1071,24 @@ void WriteCppReplay(bool compression,
out << "extern \"C\" {\n"; out << "extern \"C\" {\n";
} }
if (frameIndex == 1)
{
std::stringstream setupCallStream;
setupCallStream << "void " << FmtSetupFunction(kNoPartId) << "\n";
setupCallStream << "{\n";
size_t maxClientArraySize = MaxClientArraySize(clientArraySizes);
WriteInitReplayCall(compression, setupCallStream, context->id(), captureLabel,
maxClientArraySize, readBufferSize);
WriteCppReplayFunctionWithParts(context, ReplayFunc::Setup, &dataTracker, frameIndex,
binaryData, setupCalls, header, setupCallStream, out);
out << setupCallStream.str();
out << "}\n";
}
if (frameIndex == frameCount) if (frameIndex == frameCount)
{ {
// Emit code to reset back to starting state // Emit code to reset back to starting state
...@@ -4890,8 +4908,6 @@ void FrameCapture::writeCppReplayIndexFiles(const gl::Context *context, bool wri ...@@ -4890,8 +4908,6 @@ void FrameCapture::writeCppReplayIndexFiles(const gl::Context *context, bool wri
const egl::Config *config = context->getConfig(); const egl::Config *config = context->getConfig();
const egl::AttributeMap &attributes = context->getDisplay()->getAttributeMap(); const egl::AttributeMap &attributes = context->getDisplay()->getAttributeMap();
DataTracker dataTracker;
unsigned frameCount = getFrameCount(); unsigned frameCount = getFrameCount();
std::stringstream header; std::stringstream header;
...@@ -4981,22 +4997,6 @@ void FrameCapture::writeCppReplayIndexFiles(const gl::Context *context, bool wri ...@@ -4981,22 +4997,6 @@ void FrameCapture::writeCppReplayIndexFiles(const gl::Context *context, bool wri
source << "\n"; source << "\n";
} }
{
std::stringstream setupCallStream;
setupCallStream << "void " << FmtSetupFunction(kNoPartId) << "\n";
setupCallStream << "{\n";
WriteInitReplayCall(mCompression, setupCallStream, context->id(), mCaptureLabel,
MaxClientArraySize(mClientArraySizes), mReadBufferSize);
WriteCppReplayFunctionWithParts(context, ReplayFunc::Setup, &dataTracker, mFrameIndex,
&mBinaryData, mSetupCalls, header, setupCallStream, source);
source << setupCallStream.str();
source << "}\n";
}
source << "extern \"C\" {\n"; source << "extern \"C\" {\n";
source << "void ReplayFrame(uint32_t frameIndex)\n"; source << "void ReplayFrame(uint32_t frameIndex)\n";
source << "{\n"; source << "{\n";
......
...@@ -38,18 +38,9 @@ ColorMaskTest.AMDZeroColorMaskBug/ES3_OpenGL ...@@ -38,18 +38,9 @@ ColorMaskTest.AMDZeroColorMaskBug/ES3_OpenGL
SimpleOperationTest.ClearAndSwap/* SimpleOperationTest.ClearAndSwap/*
SimpleOperationTest.DrawQuadAndSwap/* SimpleOperationTest.DrawQuadAndSwap/*
# Tests that fail randomly when run in groups but pass when run standalone
BufferDataTest.ZeroNonNULLData/ES2_Vulkan
BufferDataTest.ZeroNonNULLData/ES2_Vulkan_AsyncQueue
BufferDataTest.NULLResolvedData/ES2_Vulkan
BufferDataTest.NULLResolvedData/ES2_Vulkan_AsyncQueue
BufferDataTest.ExtensionDependency/ES2_Vulkan_AsyncQueue
BufferDataTest.RepeatedDrawWithDynamic/ES2_Vulkan
BufferDataTest.MapBufferOES/ES2_Vulkan_AsyncQueue
# Crashed tests # Crashed tests
BlitFramebufferANGLETest.* BlitFramebufferANGLETest.*
BufferDataTest.*
ClipDistanceTest.* ClipDistanceTest.*
CopyCompressedTextureTest.InternalFormat/* CopyCompressedTextureTest.InternalFormat/*
DebugMarkerTest.* DebugMarkerTest.*
......
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