OSDN Git Service

test: allow default surface param for create context
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Tue, 11 Oct 2016 19:21:44 +0000 (12:21 -0700)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 31 Oct 2016 02:00:08 +0000 (10:00 +0800)
commit5a2515b97d8ac4239f3e809621e982985d6a5289
treea385444a4af2f479020ea0c468872a6c5e948a70
parent6e32360a27522dee549e845fecac02d2a02a63a3
test: allow default surface param for create context

The driver does not require surfaces to create a context.
That is, i965_CreateContext can accept an empty render_targets
list.  Thus, make Surfaces an optional parameter to
I965TestFixture::createContext so that simple tests don't
have to bother with Surfaces if they are irrelevant to
the test case.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
(cherry picked from commit 5c013c55e458a7f476f600e7ff78f59f3246168f)
test/i965_test_fixture.cpp
test/i965_test_fixture.h