Lines Matching refs:device

78 // Class to wrap a singleton device with the indicated robustness features.
303 // Returns the appropriate singleton device for the given case.
318 // Returns the appropriate singleton device driver for the given case.
481 // We need to query some features using the physical device instead of using the reported context features because robustness2
482 // and image robustness are always disabled in the default device but they may be available.
1778 const VkDevice device = getLogicalDevice(m_context, m_data.testRobustness2, m_data.needsPipelineRobustness());
1781 SimpleAllocator allocator (vk, device, getPhysicalDeviceMemoryProperties(vki, physicalDevice));
1869 descriptorSetLayout = vk::createDescriptorSetLayout(vk, device, &setLayoutCreateInfo);
1881 descriptorPool = poolBuilder.build(vk, device, poolCreateFlags, 1u, DE_NULL);
1886 descriptorSet = makeDescriptorSet(vk, device, *descriptorPool, *descriptorSetLayout, pNext);
1925 vk, device, allocator, makeBufferCreateInfo(size, usage), MemoryRequirement::HostVisible));
1952 Move<VkCommandPool> cmdPool = createCommandPool(vk, device, 0, queueFamilyIndex);
1953 Move<VkCommandBuffer> cmdBuffer = allocateCommandBuffer(vk, device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY);
1956 vk.getDeviceQueue(device, queueFamilyIndex, 0, &queue);
2128 vk, device, allocator,
2138 flushAlloc(vk, device, bufferOutputImageR64->getAllocation());
2141 vk, device, allocator,
2155 flushAlloc(vk, device, bufferImageR64->getAllocation());
2196 vk::Move<vk::VkBufferView> bufferView = vk::createBufferView(vk, device, &viewCreateInfo);
2215 images[b] = ImageWithMemorySp(new ImageWithMemory(vk, device, allocator, outputImageCreateInfo, MemoryRequirement::Any));
2220 images[b] = ImageWithMemorySp(new ImageWithMemory(vk, device, allocator, imageCreateInfo, MemoryRequirement::Any));
2224 imageViews[b] = VkImageViewSp(new Unique<VkImageView>(createImageView(vk, device, &imageViewCreateInfo, NULL)));
2301 .build(vk, device);
2307 .build(vk, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 2u);
2310 device,
2314 shaderModuleFillImage = createShaderModule(vk, device, m_context.getBinaryCollection().get("fillShader"), 0);
2315 pipelineLayoutFillImage = makePipelineLayout(vk, device, *descriptorSetLayoutR64);
2316 pipelineFillImage = makeComputePipeline(vk, device, *pipelineLayoutFillImage, *shaderModuleFillImage);
2324 .update(vk, device);
2391 Move<VkSampler> sampler (createSampler(vk, device, &samplerParams));
2395 flushAlloc(vk, device, buffer->getAllocation());
2408 Move<VkPipelineLayout> pipelineLayout = createPipelineLayout(vk, device, &pipelineLayoutCreateInfo, NULL);
2412 vk, device, allocator, makeBufferCreateInfo(DIM*DIM*16, VK_BUFFER_USAGE_TRANSFER_DST_BIT), MemoryRequirement::HostVisible));
2568 Move<VkDescriptorUpdateTemplate> descriptorUpdateTemplate = createDescriptorUpdateTemplate(vk, device, &templateCreateInfo, NULL);
2581 Move<VkDescriptorUpdateTemplate> descriptorUpdateTemplate = createDescriptorUpdateTemplate(vk, device, &templateCreateInfo, NULL);
2582 vk.updateDescriptorSetWithTemplate(device, descriptorSet.get(), *descriptorUpdateTemplate, templateVectorData[i]);
2605 vk.updateDescriptorSets(device, (deUint32)writesBeforeBindVec.size(), &writesBeforeBindVec[0], 0, NULL);
2637 const Unique<VkShaderModule> shader(createShaderModule(vk, device, m_context.getBinaryCollection().get("test"), 0));
2670 pipeline = createComputePipeline(vk, device, DE_NULL, &pipelineCreateInfo);
2676 const Unique<VkShaderModule> shader(createShaderModule(vk, device, m_context.getBinaryCollection().get("test"), 0));
2725 pipeline = createRayTracingPipelineKHR(vk, device, VK_NULL_HANDLE, VK_NULL_HANDLE, &pipelineCreateInfo);
2728 vk, device, allocator, makeBufferCreateInfo(sgHandleSize, sbtFlags), (MemoryRequirement::HostVisible | MemoryRequirement::DeviceAddress)));
2731 invalidateAlloc(vk, device, sbtBuffer->getAllocation());
2733 vk.getRayTracingShaderGroupHandlesKHR(device, *pipeline, 0, 1, sgHandleSize, ptr);
2741 const auto sbtAddress = vk.getBufferDeviceAddress(device, &deviceAddressInfo);
2798 renderPass = createRenderPass(vk, device, &renderPassParams);
2813 framebuffer = createFramebuffer(vk, device, &framebufferParams);
2902 vs = createShaderModule(vk, device, m_context.getBinaryCollection().get("test"), 0);
2903 fs = createShaderModule(vk, device, m_context.getBinaryCollection().get("test"), 0); // bogus
2908 vs = createShaderModule(vk, device, m_context.getBinaryCollection().get("vert"), 0);
2909 fs = createShaderModule(vk, device, m_context.getBinaryCollection().get("test"), 0);
3000 vertexInputLib = createGraphicsPipeline(vk, device, VK_NULL_HANDLE, &vertexInputPipelineInfo);
3029 preRasterShaderLib = createGraphicsPipeline(vk, device, VK_NULL_HANDLE, &preRasterShaderPipelineInfo);
3056 fragShaderLib = createGraphicsPipeline(vk, device, VK_NULL_HANDLE, &fragShaderPipelineInfo);
3071 fragOutputLib = createGraphicsPipeline(vk, device, VK_NULL_HANDLE, &fragOutputPipelineInfo);
3089 pipeline = createGraphicsPipeline(vk, device, VK_NULL_HANDLE, &linkedPipelineInfo);
3094 pipeline = createGraphicsPipeline(vk, device, DE_NULL, &graphicsPipelineCreateInfo);
3218 submitCommandsAndWait(vk, device, queue, cmdBuffer.get());
3222 invalidateAlloc(vk, device, copyBuffer->getAllocation());
3323 // We need to query feature support using the physical device instead of using the reported context features because robustness
3324 // features are disabled in the default device.
3388 const auto device = getLogicalDevice(m_context, true, m_params.pipelineRobustness);
3389 SimpleAllocator allocator (vkd, device, getPhysicalDeviceMemoryProperties(vki, physicalDevice));
3401 vkd.getDeviceQueue(device, qfIndex, 0u, &queue);
3404 ImageWithBuffer colorBuffer(vkd, device, allocator, fbExtent, colorFormat, colorUsage, VK_IMAGE_TYPE_2D);
3440 BufferWithMemory vertexBuffer(vkd, device, allocator, vertexBufferInfo, MemoryRequirement::HostVisible);
3448 const auto vertModule = createShaderModule(vkd, device, binaries.get("vert"));
3449 const auto fragModule = createShaderModule(vkd, device, binaries.get("frag"));
3450 const auto renderPass = makeRenderPass(vkd, device, colorFormat);
3451 const auto framebuffer = makeFramebuffer(vkd, device, renderPass.get(), colorBuffer.getImageView(), fbExtent.width, fbExtent.height);
3452 const auto pipelineLayout = makePipelineLayout(vkd, device);
3486 const auto pipeline = makeGraphicsPipeline(vkd, device, pipelineLayout.get(),
3492 const CommandPoolWithBuffer cmd (vkd, device, qfIndex);
3531 submitCommandsAndWait(vkd, device, queue, cmdBuffer);
3534 invalidateAlloc(vkd, device, colorBuffer.getBufferAllocation());