Commit a766ab14 by Charlie Lao Committed by Commit Bot

Vulkan: minimize-gpu-work: Use 1x1 offscreen

When minimize-gpu-work is requested, the idea is to have GPU work reduced to minimum. Without shrink the offscreen window to 1x1, the driver load/store op may still have to load entire surface which could be costly. This CL reduces the offscreen surface size to 1x1 when --minimize-gpu-work is specified. Bug: b/184766477 Change-Id: Ic8d9d4c2fe8295a0a5808dcee35120fdd20e0f56 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2840963 Commit-Queue: Charlie Lao <cclao@google.com> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent ccc0fbaa
...@@ -992,8 +992,17 @@ void TracePerfTest::initializeBenchmark() ...@@ -992,8 +992,17 @@ void TracePerfTest::initializeBenchmark()
mTraceLibrary->setBinaryDataDir(testDataDir); mTraceLibrary->setBinaryDataDir(testDataDir);
mWindowWidth = mTestParams.windowWidth; if (gMinimizeGPUWork)
mWindowHeight = mTestParams.windowHeight; {
// Shrink the offscreen window to 1x1.
mWindowWidth = 1;
mWindowHeight = 1;
}
else
{
mWindowWidth = mTestParams.windowWidth;
mWindowHeight = mTestParams.windowHeight;
}
mCurrentFrame = mStartFrame; mCurrentFrame = mStartFrame;
if (IsAndroid()) if (IsAndroid())
......
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