Use the static test fixture to speed up CreateSurfaces tests.
Reduces test runtime on my radeonsi system by 20%. Likely a lot of
the improvement here is from being able to userspace recycle the BOs
that are being allocated.
Fixes: #247
diff --git a/test/test_va_api_createsurfaces.cpp b/test/test_va_api_createsurfaces.cpp
index 32dbe1a..2b3c262 100644
--- a/test/test_va_api_createsurfaces.cpp
+++ b/test/test_va_api_createsurfaces.cpp
@@ -34,11 +34,11 @@
// combinations that the driver does support.
class VAAPISurfaceFixture
- : public VAAPIFixture
+ : public VAAPIFixtureSharedDisplay
{
public:
VAAPISurfaceFixture(const VAProfile& p, const VAEntrypoint& e)
- : VAAPIFixture()
+ : VAAPIFixtureSharedDisplay()
, profile(p)
, entrypoint(e)
{ }
@@ -47,19 +47,6 @@
const VAProfile& profile;
const VAEntrypoint& entrypoint;
- virtual void SetUp()
- {
- VAAPIFixture::SetUp();
- doInitialize();
- ASSERT_FALSE(HasFailure());
- }
-
- virtual void TearDown()
- {
- doTerminate();
- VAAPIFixture::TearDown();
- }
-
void testWithSupportedConfigAttributes(
const std::function<void (const ConfigAttributes&)>& test)
{