summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2016-10-11 12:21:45 -0700
committerSean V Kelley <seanvk@posteo.de>2016-10-13 12:22:05 -0700
commit31d499ebdd0fe080d8e3654ab90fede155b148fe (patch)
tree6caa80c6863d1fc994d6c93a8ae0debf0508e1fe /test
parent5c013c55e458a7f476f600e7ff78f59f3246168f (diff)
test: allow default attribs param for create config
Driver does not require config attributes to create a config. Thus, allow I965TestFixture::createConfig to be called without specifying ConfigAttribs. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
Diffstat (limited to 'test')
-rw-r--r--test/i965_test_fixture.cpp5
-rw-r--r--test/i965_test_fixture.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/test/i965_test_fixture.cpp b/test/i965_test_fixture.cpp
index 74403f8..ac44ddf 100644
--- a/test/i965_test_fixture.cpp
+++ b/test/i965_test_fixture.cpp
@@ -66,12 +66,13 @@ void I965TestFixture::destroySurfaces(Surfaces& surfaces)
}
VAConfigID I965TestFixture::createConfig(
- VAProfile profile, VAEntrypoint entrypoint, ConfigAttribs& attribs)
+ VAProfile profile, VAEntrypoint entrypoint, const ConfigAttribs& attribs)
{
VAConfigID id = VA_INVALID_ID;
EXPECT_STATUS(
i965_CreateConfig(
- *this, profile, entrypoint, attribs.data(), attribs.size(), &id));
+ *this, profile, entrypoint,
+ const_cast<VAConfigAttrib*>(attribs.data()), attribs.size(), &id));
EXPECT_ID(id);
return id;
diff --git a/test/i965_test_fixture.h b/test/i965_test_fixture.h
index 3fc11c3..02c1dbb 100644
--- a/test/i965_test_fixture.h
+++ b/test/i965_test_fixture.h
@@ -76,7 +76,8 @@ public:
* Convenience wrapper for i965_CreateConfig. May generate a non-fatal
* test assertion failure.
*/
- VAConfigID createConfig(VAProfile, VAEntrypoint, ConfigAttribs&);
+ VAConfigID createConfig(VAProfile, VAEntrypoint,
+ const ConfigAttribs& = ConfigAttribs());
/**
* Convenience wrapper for i965_DestroyConfig. May generate a non-fatal