Lines Matching defs:device
131 msg << "Cannot create device with " << queueCount << " graphics queues";
236 void createVulkanBuffer (const DeviceInterface& vkd, VkDevice device, Allocator& allocator, const BufferParameters& bufferParameters, Buffer& buffer, MemoryRequirement visibility)
250 buffer.buffer = createBuffer(vkd, device, &bufferCreateParams);
251 buffer.allocation = allocator.allocate(getBufferMemoryRequirements(vkd, device, *buffer.buffer), visibility);
253 VK_CHECK(vkd.bindBufferMemory(device, *buffer.buffer, buffer.allocation->getMemory(), buffer.allocation->getOffset()));
263 flushAlloc(vkd, device, *buffer.allocation);
300 void createVulkanImage (const DeviceInterface& vkd, VkDevice device, Allocator& allocator, const ImageParameters& imageParameters, Image& image, MemoryRequirement visibility)
325 image.image = createImage(vkd, device, &imageCreateParams);
326 image.allocation = allocator.allocate(getImageMemoryRequirements(vkd, device, *image.image), visibility);
328 VK_CHECK(vkd.bindImageMemory(device, *image.image, image.allocation->getMemory(), image.allocation->getOffset()));
351 image.imageView = createImageView(vkd, device, &imageViewCreateInfo);
374 void createColorOnlyRenderPass (const DeviceInterface& vkd, VkDevice device, const RenderPassParameters& renderPassParameters, vk::Move<VkRenderPass>& renderPass)
421 renderPass = createRenderPass(vkd, device, &renderPassParams);
470 void createCommandBuffer (const DeviceInterface& deviceInterface, const VkDevice device, const deUint32 queueFamilyNdx, vk::Move<VkCommandBuffer>* commandBufferRef, vk::Move<VkCommandPool>* commandPoolRef)
476 commandPool = createCommandPool(deviceInterface, device, 0u, queueFamilyNdx);
485 VK_CHECK(deviceInterface.allocateCommandBuffers(device, &commandBufferInfo, &commandBuffer));
486 *commandBufferRef = vk::Move<VkCommandBuffer>(vk::check<VkCommandBuffer>(commandBuffer), Deleter<VkCommandBuffer>(deviceInterface, device, commandPool.get()));
490 void createFences (const DeviceInterface& deviceInterface, VkDevice device, bool signaled, deUint32 numFences, VkFence* fence)
501 VK_CHECK(deviceInterface.createFence(device, &fenceState, DE_NULL, &fence[ndx]));
504 void destroyFences (const DeviceInterface& deviceInterface, VkDevice device, deUint32 numFences, VkFence* fence)
507 deviceInterface.destroyFence(device, fence[ndx], DE_NULL);
611 const VkDevice device;
645 , device (device_)
655 createFences(vkd, device, false, DE_LENGTH_OF_ARRAY(fences), fences);
660 destroyFences(vkd, device, DE_LENGTH_OF_ARRAY(fences), fences);
672 testContext.device,
677 testContext.device,
759 createVulkanBuffer(deviceInterface, testContext.device, testContext.allocator, bufferParameters, buffer, MemoryRequirement::HostVisible);
770 createVulkanBuffer(deviceInterface, testContext.device, testContext.allocator, bufferParameters, buffer, MemoryRequirement::HostVisible);
791 createVulkanImage(deviceInterface, testContext.device, testContext.allocator, imageParameters, image, MemoryRequirement::Any);
800 createColorOnlyRenderPass(deviceInterface, testContext.device, renderPassParameters, testContext.renderPass);
905 layout = createPipelineLayout(deviceInterface, testContext.device, &pipelineLayoutState, DE_NULL);
941 testContext.pipelineCache = createPipelineCache(deviceInterface, testContext.device, &cacheState);
942 testContext.pipeline = createGraphicsPipeline(deviceInterface, testContext.device, testContext.pipelineCache.get(), &pipelineState);
955 testContext.framebuffer = createFramebuffer(deviceInterface, testContext.device, &fbState);
1050 VkDevice device = context.getDevice();
1053 TestContext testContext (deviceInterface, device, queueFamilyIdx, context.getBinaryCollection(), context.getDefaultAllocator(), context.getResourceInterface());
1068 createCommandBuffer(deviceInterface, device, queueFamilyIdx, &testContext.cmdBuffer, &testContext.commandPool);
1072 fenceStatus = deviceInterface.getFenceStatus(device, testContext.fences[0]);
1078 fenceStatus = deviceInterface.getFenceStatus(device, testContext.fences[1]);
1089 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, 0u);
1098 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, DEFAULT_TIMEOUT);
1107 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[0], true, std::numeric_limits<deUint64>::max());
1115 waitStatus = deviceInterface.waitForFences(device, 1, &testContext.fences[1], true, 1);
1123 fenceStatus = deviceInterface.getFenceStatus(device, testContext.fences[0]);
1130 invalidateAlloc(deviceInterface, device, *testContext.renderReadBuffer);
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));
1166 *device,
1170 getDeviceQueue(deviceDriver, *device, queueFamilyIdx, 0),
1171 getDeviceQueue(deviceDriver, *device, queueFamilyIdx, 1)
1174 TestContext testContext1 (deviceDriver, device.get(), queueFamilyIdx, context.getBinaryCollection(), allocator, context.getResourceInterface());
1175 TestContext testContext2 (deviceDriver, device.get(), queueFamilyIdx, context.getBinaryCollection(), allocator, context.getResourceInterface());
1176 Unique<VkSemaphore> semaphore (createSemaphoreType(deviceDriver, *device, config.semaphoreType));
1204 createCommandBuffer(deviceDriver, device.get(), queueFamilyIdx, &testContext1.cmdBuffer, &testContext1.commandPool);
1207 createCommandBuffer(deviceDriver, device.get(), queueFamilyIdx, &testContext2.cmdBuffer, &testContext2.commandPool);
1227 testStatus = deviceDriver.waitForFences(device.get(), 1, &testContext1.fences[0], true, std::numeric_limits<deUint64>::max());
1234 invalidateAlloc(deviceDriver, device.get(), *testContext1.renderReadBuffer);
1265 testStatus = deviceDriver.waitForFences(device.get(), 1, &testContext2.fences[0], true, std::numeric_limits<deUint64>::max());
1272 invalidateAlloc(deviceDriver, device.get(), *testContext2.renderReadBuffer);