Commit 1bd4bfb0 by Jamie Madill Committed by Commit Bot

Add draw call perf tests that use the driver.

Also moves some code to the cpp. Bug: angleproject:2747 Change-Id: I38468e6276d52d11d5751df6917c66f15ae61246 Reviewed-on: https://chromium-review.googlesource.com/1163822 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarFrank Henigman <fjhenigman@chromium.org>
parent 6ba9754f
...@@ -184,10 +184,12 @@ ANGLE_INSTANTIATE_TEST(DrawCallPerfBenchmark, ...@@ -184,10 +184,12 @@ ANGLE_INSTANTIATE_TEST(DrawCallPerfBenchmark,
DrawArrays(DrawCallPerfD3D11Params(false, false), false), DrawArrays(DrawCallPerfD3D11Params(false, false), false),
DrawArrays(DrawCallPerfD3D11Params(true, false), false), DrawArrays(DrawCallPerfD3D11Params(true, false), false),
DrawArrays(DrawCallPerfD3D11Params(true, true), false), DrawArrays(DrawCallPerfD3D11Params(true, true), false),
DrawArrays(DrawCallPerfD3D11Params(false, false), true),
DrawArrays(DrawCallPerfD3D11Params(true, false), true), DrawArrays(DrawCallPerfD3D11Params(true, false), true),
DrawArrays(DrawCallPerfOpenGLOrGLESParams(false, false), false), DrawArrays(DrawCallPerfOpenGLOrGLESParams(false, false), false),
DrawArrays(DrawCallPerfOpenGLOrGLESParams(true, false), false), DrawArrays(DrawCallPerfOpenGLOrGLESParams(true, false), false),
DrawArrays(DrawCallPerfOpenGLOrGLESParams(true, true), false), DrawArrays(DrawCallPerfOpenGLOrGLESParams(true, true), false),
DrawArrays(DrawCallPerfOpenGLOrGLESParams(false, false), true),
DrawArrays(DrawCallPerfOpenGLOrGLESParams(true, false), true), DrawArrays(DrawCallPerfOpenGLOrGLESParams(true, false), true),
DrawArrays(DrawCallPerfValidationOnly(), false), DrawArrays(DrawCallPerfValidationOnly(), false),
DrawArrays(DrawCallPerfVulkanParams(true, false), true), DrawArrays(DrawCallPerfVulkanParams(true, false), true),
......
...@@ -11,6 +11,21 @@ ...@@ -11,6 +11,21 @@
#include <sstream> #include <sstream>
DrawCallPerfParams::DrawCallPerfParams()
{
majorVersion = 2;
minorVersion = 0;
windowWidth = 256;
windowHeight = 256;
iterations = 50;
runTimeSeconds = 10.0;
numTris = 1;
useFBO = false;
}
DrawCallPerfParams::~DrawCallPerfParams() = default;
std::string DrawCallPerfParams::suffix() const std::string DrawCallPerfParams::suffix() const
{ {
std::stringstream strstr; std::stringstream strstr;
......
...@@ -17,21 +17,15 @@ ...@@ -17,21 +17,15 @@
struct DrawCallPerfParams : public RenderTestParams struct DrawCallPerfParams : public RenderTestParams
{ {
// Common default options // Common default options
DrawCallPerfParams() DrawCallPerfParams();
{ virtual ~DrawCallPerfParams();
majorVersion = 2;
minorVersion = 0;
windowWidth = 256;
windowHeight = 256;
}
virtual ~DrawCallPerfParams() {}
std::string suffix() const override; std::string suffix() const override;
unsigned int iterations = 50; unsigned int iterations;
double runTimeSeconds = 10.0; double runTimeSeconds;
int numTris = 1; int numTris;
bool useFBO = false; bool useFBO;
}; };
DrawCallPerfParams DrawCallPerfD3D11Params(bool useNullDevice, bool renderToTexture); DrawCallPerfParams DrawCallPerfD3D11Params(bool useNullDevice, bool renderToTexture);
......
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