Lines Matching defs:context
103 Move<VkDevice> createTestDevice (Context& context, SemaphoreTestConfig& config, const VkInstance& instance, const InstanceInterface& vki, deUint32* outQueueFamilyIndex)
105 const PlatformInterface& vkp = context.getPlatformInterface();
106 VkPhysicalDevice physicalDevice = chooseDevice(vki, instance, context.getTestContext().getCommandLine());
107 bool validationEnabled = context.getTestContext().getCommandLine().isValidationEnabled();
151 if (!isCoreDeviceExtension(context.getUsedApiVersion(), "VK_KHR_timeline_semaphore"))
165 VkDeviceObjectReservationCreateInfo memReservationInfo = context.getTestContext().getCommandLine().isSubProcess() ? context.getResourceInterface()->getStatMax() : resetDeviceObjectReservationCreateInfo();
175 if (context.getTestContext().getCommandLine().isSubProcess())
177 if (context.getResourceInterface()->getCacheDataSize() > 0)
185 context.getResourceInterface()->getCacheDataSize(), // deUintptr initialDataSize;
186 context.getResourceInterface()->getCacheData() // const void* pInitialData;
192 poolSizes = context.getResourceInterface()->getPipelinePoolSizes();
1044 tcu::TestStatus testFences (Context& context)
1046 TestLog& log = context.getTestContext().getLog();
1047 const DeviceInterface& deviceInterface = context.getDeviceInterface();
1048 const VkQueue queue = context.getUniversalQueue();
1049 const deUint32 queueFamilyIdx = context.getUniversalQueueFamilyIndex();
1050 VkDevice device = context.getDevice();
1053 TestContext testContext (deviceInterface, device, queueFamilyIdx, context.getBinaryCollection(), context.getDefaultAllocator(), context.getResourceInterface());
1145 tcu::TestStatus testSemaphores (Context& context, SemaphoreTestConfig config)
1147 if (config.semaphoreType == VK_SEMAPHORE_TYPE_TIMELINE && !context.getTimelineSemaphoreFeatures().timelineSemaphore)
1150 TestLog& log = context.getTestContext().getLog();
1151 const PlatformInterface& platformInterface = context.getPlatformInterface();
1152 const auto instance = context.getInstance();
1153 const auto& instanceDriver = context.getInstanceInterface();
1154 const VkPhysicalDevice physicalDevice = chooseDevice(instanceDriver, instance, context.getTestContext().getCommandLine());
1157 vk::Move<VkDevice> device (createTestDevice(context, config, instance, instanceDriver, &queueFamilyIdx));
1160 de::MovePtr<vk::DeviceDriver> deviceInterfacePtr = de::MovePtr<DeviceDriver>(new DeviceDriver(platformInterface, instance, *device, context.getUsedApiVersion()));
1162 de::MovePtr<vk::DeviceDriverSC, vk::DeinitDeviceDeleter> deviceInterfacePtr = de::MovePtr<DeviceDriverSC, DeinitDeviceDeleter>(new DeviceDriverSC(platformInterface, instance, *device, context.getTestContext().getCommandLine(), context.getResourceInterface(), context.getDeviceVulkanSC10Properties(), context.getDeviceProperties(), context.getUsedApiVersion()), vk::DeinitDeviceDeleter(context.getResourceInterface().get(), *device));
1174 TestContext testContext1 (deviceDriver, device.get(), queueFamilyIdx, context.getBinaryCollection(), allocator, context.getResourceInterface());
1175 TestContext testContext2 (deviceDriver, device.get(), queueFamilyIdx, context.getBinaryCollection(), allocator, context.getResourceInterface());
1287 void checkSupport(Context& context, SemaphoreTestConfig config)
1290 context.requireDeviceFunctionality("VK_KHR_timeline_semaphore");
1292 context.requireDeviceFunctionality("VK_KHR_synchronization2");