anv/tests: Create a dummy instance as well as device
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 1 May 2017 23:48:12 +0000 (16:48 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 2 May 2017 00:06:40 +0000 (17:06 -0700)
commit6ef1bd4fa57b36efc7919773fd26c36fd43d2ea9
tree9c37ef5837ccea75fc78e05425b0c38cb7654352
parent6681ab1f975b1a23e00a4b011bc1783e6e33d07b
anv/tests: Create a dummy instance as well as device

This fixes crashes caused by 35e626bd0e59e7ce9fd97ccef66b2468c09206a4
which made us start referencing the instance in the allocators.  With
this commit, the tests now happily pass again.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100877
Tested-by: Vinson Lee <vlee@freedesktop.org>
src/intel/vulkan/tests/block_pool_no_free.c
src/intel/vulkan/tests/state_pool.c
src/intel/vulkan/tests/state_pool_free_list_only.c
src/intel/vulkan/tests/state_pool_no_free.c