Home
last modified time | relevance | path

Searched refs:vkDevice (Results 1 – 25 of 40) sorted by relevance

12

/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiCommandBuffersTests.cpp484 const VkDevice vkDevice = context.getDevice(); in createPoolNullParamsTest() local
488 createCommandPool(vk, vkDevice, 0u, queueFamilyIndex); in createPoolNullParamsTest()
495 const VkDevice vkDevice = context.getDevice(); in createPoolNonNullAllocatorTest() local
508 createCommandPool(vk, vkDevice, &cmdPoolParams, allocationCallbacks); in createPoolNonNullAllocatorTest()
515 const VkDevice vkDevice = context.getDevice(); in createPoolTransientBitTest() local
527 createCommandPool(vk, vkDevice, &cmdPoolParams, DE_NULL); in createPoolTransientBitTest()
534 const VkDevice vkDevice = context.getDevice(); in createPoolResetBitTest() local
546 createCommandPool(vk, vkDevice, &cmdPoolParams, DE_NULL); in createPoolResetBitTest()
553 const VkDevice vkDevice = context.getDevice(); in resetPoolReleaseResourcesBitTest() local
565 …const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams, DE_NUL… in resetPoolReleaseResourcesBitTest()
[all …]
DvktApiBufferAndImageAllocationUtil.cpp49 const VkDevice vkDevice = context.getDevice(); in createTestBuffer() local
64 buffer = vk::createBuffer(vk, vkDevice, &bufferParams, (const VkAllocationCallbacks*)DE_NULL); in createTestBuffer()
65 memory = allocator.allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), requirement); in createTestBuffer()
66 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, memory->getMemory(), 0)); in createTestBuffer()
86 const VkDevice vkDevice = context.getDevice(); in createTestBuffer() local
103 buffer = vk::createBuffer(vk, vkDevice, &bufferParams, (const VkAllocationCallbacks*)DE_NULL); in createTestBuffer()
104 memory = allocateDedicated(vkInstance, vk, vkPhysicalDevice, vkDevice, buffer.get(), requirement); in createTestBuffer()
105 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, memory->getMemory(), memory->getOffset())); in createTestBuffer()
116 const VkDevice vkDevice = context.getDevice(); in createTestImage() local
139 image = createImage(vk, vkDevice, &colorImageParams); in createTestImage()
[all …]
DvktApiSmokeTests.cpp64 const VkDevice vkDevice = context.getDevice(); in createSamplerTest() local
90 Move<VkSampler> tmpSampler = createSampler(vk, vkDevice, &samplerInfo); in createSamplerTest()
111 const VkDevice vkDevice = context.getDevice(); in createShaderModuleTest() local
113 …const Unique<VkShaderModule> shader (createShaderModule(vk, vkDevice, context.getBinaryCollection… in createShaderModuleTest()
332 const VkDevice vkDevice = context.getDevice(); in renderTriangleTest() local
336 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInst… in renderTriangleTest()
359 const Unique<VkBuffer> vertexBuffer (createBuffer(vk, vkDevice, &vertexBufferParams)); in renderTriangleTest()
360 … vertexBufferMemory (memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *vertexBuffer), … in renderTriangleTest()
362 …VK_CHECK(vk.bindBufferMemory(vkDevice, *vertexBuffer, vertexBufferMemory->getMemory(), vertexBuffe… in renderTriangleTest()
376 const Unique<VkBuffer> readImageBuffer (createBuffer(vk, vkDevice, &readImageBufferParams)); in renderTriangleTest()
[all …]
DvktApiBufferViewAccessTests.cpp163 const VkDevice vkDevice = context.getDevice(); in BufferViewTestInstance() local
165 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getIns… in BufferViewTestInstance()
202 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in BufferViewTestInstance()
253 m_renderPass = createRenderPass(vk, vkDevice, &renderPassParams); in BufferViewTestInstance()
276 m_framebuffer = createFramebuffer(vk, vkDevice, &framebufferParams); in BufferViewTestInstance()
303 m_descriptorSetLayout = createDescriptorSetLayout(vk, vkDevice, &descriptorLayoutParams); in BufferViewTestInstance()
313 …flushMappedMemoryRange(vk, vkDevice, m_uniformBufferAlloc->getMemory(), m_uniformBufferAlloc->getO… in BufferViewTestInstance()
326 m_uniformBufferView = createBufferView(vk, vkDevice, &viewInfo); in BufferViewTestInstance()
347 m_descriptorPool = createDescriptorPool(vk, vkDevice, &descriptorPoolParams); in BufferViewTestInstance()
358 m_descriptorSet = allocateDescriptorSet(vk, vkDevice, &descriptorSetParams); in BufferViewTestInstance()
[all …]
DvktApiBufferViewCreateTests.cpp135 const VkDevice vkDevice = context.getDevice(); in createTestBuffer() local
153 testBuffer = vk::createBuffer(vk, vkDevice, &bufferParams, (const VkAllocationCallbacks*)DE_NULL); in createTestBuffer()
160 vk.getBufferMemoryRequirements(vkDevice, *testBuffer, &memReqs); in createTestBuffer()
179 memory = allocateMemory(vk, vkDevice, &memAlloc, (const VkAllocationCallbacks*)DE_NULL); in createTestBuffer()
186 if (vk.bindBufferMemory(vkDevice, *testBuffer, *memory, 0) != VK_SUCCESS) in createTestBuffer()
204 const VkDevice vkDevice = context.getDevice(); in createTestBuffer() local
237 testBuffer = vk::createBuffer(vk, vkDevice, &bufferParams, (const VkAllocationCallbacks*)DE_NULL); in createTestBuffer()
251 vk.getBufferMemoryRequirements2KHR(vkDevice, &info, &memReqs); in createTestBuffer()
274 vk.getBufferMemoryRequirements2KHR(vkDevice, &info, &memReqs); // get the proper size requirement in createTestBuffer()
304 …result = vk.allocateMemory(vkDevice, &memoryAllocateInfo, (VkAllocationCallbacks*)DE_NULL, &rawMem… in createTestBuffer()
[all …]
DvktApiBufferTests.cpp300 const VkDevice vkDevice = getDevice(); in bufferCreateAndAllocTest() local
330 buffer = createBuffer(vk, vkDevice, &bufferParams); in bufferCreateAndAllocTest()
331 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs); in bufferCreateAndAllocTest()
362 …result = vk.createBuffer(vkDevice, &bufferParams, (vk::VkAllocationCallbacks*)DE_NULL, &rawBuffer); in bufferCreateAndAllocTest()
376 buffer = Move<VkBuffer>(check<VkBuffer>(rawBuffer), Deleter<VkBuffer>(vk, vkDevice, DE_NULL)); in bufferCreateAndAllocTest()
379 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs); // get the proper size requirement in bufferCreateAndAllocTest()
402 result = vk.allocateMemory(vkDevice, &memAlloc, (VkAllocationCallbacks*)DE_NULL, &rawMemory); in bufferCreateAndAllocTest()
416 …<VkDeviceMemory>(check<VkDeviceMemory>(rawMemory), Deleter<VkDeviceMemory>(vk, vkDevice, DE_NULL)); in bufferCreateAndAllocTest()
424 const VkQueue queue = getDeviceQueue(vk, vkDevice, queueFamilyIndex, 0); in bufferCreateAndAllocTest()
459 const vk::Unique<vk::VkFence> fence (vk::createFence(vk, vkDevice)); in bufferCreateAndAllocTest()
[all …]
DvktApiFillBufferTests.cpp111 const VkDevice vkDevice = context.getDevice(); in FillBufferTestInstance() local
116 …m_cmdPool = createCommandPool(vk, vkDevice, VK_COMMAND_POOL_CREATE_TRANSIENT_BIT, queueFamilyIndex… in FillBufferTestInstance()
119 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in FillBufferTestInstance()
122 m_fence = createFence(vk, vkDevice); in FillBufferTestInstance()
139 const VkDevice vkDevice = m_context.getDevice(); in iterate() local
181 VK_CHECK(vk.resetFences(vkDevice, 1, &m_fence.get())); in iterate()
183 VK_CHECK(vk.waitForFences(vkDevice, 1, &m_fence.get(), true, ~(0ull) /* infinity */)); in iterate()
187 …invalidateMappedMemoryRange(vk, vkDevice, m_destinationBufferAlloc->getMemory(), m_destinationBuff… in iterate()
215 const VkDevice vkDevice = m_context.getDevice(); in uploadBuffer() local
220 flushMappedMemoryRange(vk, vkDevice, bufferAlloc.getMemory(), bufferAlloc.getOffset(), bufferSize); in uploadBuffer()
[all …]
DvktApiCopiesAndBlittingTests.cpp312 const VkDevice vkDevice = context.getDevice(); in CopiesAndBlittingTestInstance() local
324 …m_cmdPool = createCommandPool(vk, vkDevice, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queue… in CopiesAndBlittingTestInstance()
327 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in CopiesAndBlittingTestInstance()
330 m_fence = createFence(vk, vkDevice); in CopiesAndBlittingTestInstance()
413 const VkDevice vkDevice = m_context.getDevice(); in uploadBuffer() local
418 flushMappedMemoryRange(vk, vkDevice, bufferAlloc.getMemory(), bufferAlloc.getOffset(), bufferSize); in uploadBuffer()
426 const VkDevice vkDevice = m_context.getDevice(); in uploadImageAspect() local
450 buffer = createBuffer(vk, vkDevice, &bufferParams); in uploadImageAspect()
451 …bufferAlloc = allocateBuffer(vki, vk, vkPhysDevice, vkDevice, *buffer, MemoryRequirement::HostVisi… in uploadImageAspect()
452 …VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()… in uploadImageAspect()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineCacheTests.cpp190 const VkDevice vkDevice = m_context.getDevice(); in bindShaderStage() local
205 m_shaderModules[m_shaderStageCount] = createShaderModule(vk, vkDevice, &moduleCreateInfo); in bindShaderStage()
222 const VkDevice vkDevice = m_context.getDevice(); in buildPipeline() local
419 return createGraphicsPipeline(vk, vkDevice, cache, &graphicsPipelineParams); in buildPipeline()
440 const VkDevice vkDevice = context.getDevice(); in createBufferAndBindMemory() local
455 Move<VkBuffer> vertexBuffer = createBuffer(vk, vkDevice, &vertexBufferParams); in createBufferAndBindMemory()
457 …*pAlloc = context.getDefaultAllocator().allocate(getBufferMemoryRequirements(vk, vkDevice, *vertex… in createBufferAndBindMemory()
458 …VK_CHECK(vk.bindBufferMemory(vkDevice, *vertexBuffer, (*pAlloc)->getMemory(), (*pAlloc)->getOffset… in createBufferAndBindMemory()
472 const VkDevice vkDevice = context.getDevice(); in createImage2DAndBindMemory() local
494 Move<VkImage> image = createImage(vk, vkDevice, &colorImageParams); in createImage2DAndBindMemory()
[all …]
DvktPipelinePushConstantTests.cpp605 const VkDevice vkDevice = context.getDevice(); in PushConstantGraphicsTestInstance() local
607 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInstanc… in PushConstantGraphicsTestInstance()
634 m_colorImage = createImage(vk, vkDevice, &m_colorImageCreateInfo); in PushConstantGraphicsTestInstance()
637 …m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), Me… in PushConstantGraphicsTestInstance()
638 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in PushConstantGraphicsTestInstance()
655 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in PushConstantGraphicsTestInstance()
717 m_renderPass = createRenderPass(vk, vkDevice, &renderPassParams); in PushConstantGraphicsTestInstance()
740 m_framebuffer = createFramebuffer(vk, vkDevice, &framebufferParams); in PushConstantGraphicsTestInstance()
755 …ddSingleBinding(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, VK_SHADER_STAGE_VERTEX_BIT).build(vk, vkDevice); in PushConstantGraphicsTestInstance()
758 …rPoolBuilder().addType(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1u).build(vk, vkDevice, VK_DESCRIPTOR_PO… in PushConstantGraphicsTestInstance()
[all …]
DvktPipelineStencilTests.cpp320 const VkDevice vkDevice = context.getDevice(); in StencilTestInstance() local
322 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInstanc… in StencilTestInstance()
347 m_colorImage = createImage(vk, vkDevice, &m_colorImageCreateInfo); in StencilTestInstance()
350 …m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), Me… in StencilTestInstance()
351 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in StencilTestInstance()
379 m_stencilImage = createImage(vk, vkDevice, &stencilImageParams); in StencilTestInstance()
382 …m_stencilImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_stencilImage),… in StencilTestInstance()
383 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_stencilImage, m_stencilImageAlloc->getMemory(), m_stencil… in StencilTestInstance()
404 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in StencilTestInstance()
421 m_stencilAttachmentView = createImageView(vk, vkDevice, &stencilAttachmentViewParams); in StencilTestInstance()
[all …]
DvktPipelineDepthTests.cpp231 const VkDevice vkDevice = context.getDevice(); in DepthTestInstance() local
233 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInstanc… in DepthTestInstance()
260 m_colorImage = createImage(vk, vkDevice, &colorImageParams); in DepthTestInstance()
263 …m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), Me… in DepthTestInstance()
264 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in DepthTestInstance()
292 m_depthImage = createImage(vk, vkDevice, &depthImageParams); in DepthTestInstance()
295 …m_depthImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_depthImage), Mem… in DepthTestInstance()
296 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_depthImage, m_depthImageAlloc->getMemory(), m_depthImageA… in DepthTestInstance()
317 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in DepthTestInstance()
334 m_depthAttachmentView = createImageView(vk, vkDevice, &depthAttachmentViewParams); in DepthTestInstance()
[all …]
DvktPipelineBlendTests.cpp303 const VkDevice vkDevice = m_context.getDevice(); in BlendTestInstance() local
305 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(m_context.getInstan… in BlendTestInstance()
335 m_colorImage = createImage(vk, vkDevice, &m_colorImageCreateInfo); in BlendTestInstance()
338 …m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), Me… in BlendTestInstance()
339 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in BlendTestInstance()
356 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in BlendTestInstance()
407 m_renderPass = createRenderPass(vk, vkDevice, &renderPassParams); in BlendTestInstance()
425 m_framebuffer = createFramebuffer(vk, vkDevice, &framebufferParams); in BlendTestInstance()
441 m_pipelineLayout = createPipelineLayout(vk, vkDevice, &pipelineLayoutParams); in BlendTestInstance()
444 …m_vertexShaderModule = createShaderModule(vk, vkDevice, m_context.getBinaryCollection().get("color… in BlendTestInstance()
[all …]
DvktPipelineTimestampTests.cpp339 const VkDevice vkDevice = m_context.getDevice(); in bindShaderStage() local
354 m_shaderModules[m_shaderStageCount] = createShaderModule(vk, vkDevice, &moduleCreateInfo); in bindShaderStage()
371 const VkDevice vkDevice = m_context.getDevice(); in buildPipeline() local
386 m_pipelineLayout = createPipelineLayout(vk, vkDevice, &pipelineLayoutParams); in buildPipeline()
585 return createGraphicsPipeline(vk, vkDevice, DE_NULL, &graphicsPipelineParams); in buildPipeline()
677 const VkDevice vkDevice = context.getDevice(); in TimestampTestInstance() local
702 m_queryPool = createQueryPool(vk, vkDevice, &queryPoolParams); in TimestampTestInstance()
706 …m_cmdPool = createCommandPool(vk, vkDevice, VK_COMMAND_POOL_CREATE_TRANSIENT_BIT, queueFamilyIndex… in TimestampTestInstance()
709 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in TimestampTestInstance()
720 m_fence = createFence(vk, vkDevice, &fenceParams); in TimestampTestInstance()
[all …]
DvktPipelineInputAssemblyTests.cpp923 const VkDevice vkDevice = context.getDevice(); in InputAssemblyInstance() local
925 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInstan… in InputAssemblyInstance()
969 m_colorImage = createImage(vk, vkDevice, &m_colorImageCreateInfo); in InputAssemblyInstance()
972 …m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), Me… in InputAssemblyInstance()
973 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in InputAssemblyInstance()
990 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in InputAssemblyInstance()
1041 m_renderPass = createRenderPass(vk, vkDevice, &renderPassParams); in InputAssemblyInstance()
1059 m_framebuffer = createFramebuffer(vk, vkDevice, &framebufferParams); in InputAssemblyInstance()
1075 m_pipelineLayout = createPipelineLayout(vk, vkDevice, &pipelineLayoutParams); in InputAssemblyInstance()
1078 …m_vertexShaderModule = createShaderModule(vk, vkDevice, m_context.getBinaryCollection().get("color… in InputAssemblyInstance()
[all …]
DvktPipelineImageSamplingInstance.cpp218 const VkDevice vkDevice = context.getDevice(); in ImageSamplingInstance() local
221 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInstanc… in ImageSamplingInstance()
319 m_images[imgNdx] = SharedImagePtr(new UniqueImage(createImage(vk, vkDevice, &imageParams))); in ImageSamplingInstance()
320 …dx] = SharedAllocPtr(new UniqueAlloc(allocateImage(vki, vk, physDevice, vkDevice, **m_images[imgNd… in ImageSamplingInstance()
321 …VK_CHECK(vk.bindImageMemory(vkDevice, **m_images[imgNdx], (*m_imageAllocs[imgNdx])->getMemory(), (… in ImageSamplingInstance()
324 …uploadTestTexture(vk, vkDevice, queue, queueFamilyIndex, memAlloc, *m_texture, **m_images[imgNdx]); in ImageSamplingInstance()
339 …m_imageViews[imgNdx] = SharedImageViewPtr(new UniqueImageView(createImageView(vk, vkDevice, &image… in ImageSamplingInstance()
342 m_sampler = createSampler(vk, vkDevice, &m_samplerParams); in ImageSamplingInstance()
351 …m_descriptorPool = descriptorPoolBuilder.build(vk, vkDevice, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRI… in ImageSamplingInstance()
358 m_descriptorSetLayout = setLayoutBuilder.build(vk, vkDevice); in ImageSamplingInstance()
[all …]
DvktPipelineVertexInputTests.cpp693 const VkDevice vkDevice = context.getDevice(); in VertexInputInstance() local
695 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInstanc… in VertexInputInstance()
729 m_colorImage = createImage(vk, vkDevice, &colorImageParams); in VertexInputInstance()
732 …m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), Me… in VertexInputInstance()
733 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in VertexInputInstance()
750 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in VertexInputInstance()
801 m_renderPass = createRenderPass(vk, vkDevice, &renderPassParams); in VertexInputInstance()
819 m_framebuffer = createFramebuffer(vk, vkDevice, &framebufferParams); in VertexInputInstance()
835 m_pipelineLayout = createPipelineLayout(vk, vkDevice, &pipelineLayoutParams); in VertexInputInstance()
838 …m_vertexShaderModule = createShaderModule(vk, vkDevice, m_context.getBinaryCollection().get("attri… in VertexInputInstance()
[all …]
DvktPipelineMultisampleTests.cpp1463 const VkDevice vkDevice = context.getDevice(); in initialize() local
1465 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInstanc… in initialize()
1489 m_colorImage = createImage(vk, vkDevice, &colorImageParams); in initialize()
1492 …m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), Me… in initialize()
1493 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in initialize()
1518 m_resolveImage = createImage(vk, vkDevice, &resolveImageParams); in initialize()
1521 …m_resolveImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_resolveImage),… in initialize()
1522 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_resolveImage, m_resolveImageAlloc->getMemory(), m_resolve… in initialize()
1547 m_depthStencilImage = createImage(vk, vkDevice, &depthStencilImageParams); in initialize()
1550 …m_depthStencilImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_depthSten… in initialize()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/memory/
DvktMemoryBindingTests.cpp441 const VkDevice vkDevice = ctx.getDevice(); in createBindingTargets() local
448 targets.push_back(BufferPtr(new Move<VkBuffer>(createBuffer(vk, vkDevice, &bufferParams)))); in createBindingTargets()
458 const VkDevice vkDevice = ctx.getDevice(); in createBindingTargets() local
465 targets.push_back(ImagePtr(new Move<VkImage>(createImage(vk, vkDevice, &imageParams)))); in createBindingTargets()
485 const VkDevice vkDevice = ctx.getDevice(); in createMemory() local
492 vk.getBufferMemoryRequirements(vkDevice, **targets[i], &memReqs); in createMemory()
497 vk.allocateMemory(vkDevice, &memAlloc, (VkAllocationCallbacks*)DE_NULL, &rawMemory); in createMemory()
498 …kDeviceMemory>(check<VkDeviceMemory>(rawMemory), Deleter<VkDeviceMemory>(vk, vkDevice, DE_NULL)))); in createMemory()
511 const VkDevice vkDevice = ctx.getDevice(); in createMemory() local
517 vk.getImageMemoryRequirements(vkDevice, **targets[i], &memReqs); in createMemory()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktTextureTestUtil.cpp303 const VkDevice vkDevice = m_context.getDevice(); in updateTextureData() local
368 m_textureImage = createImage(vkd, vkDevice, &imageParams); in updateTextureData()
369 …m_textureImageMemory = allocator.allocate(getImageMemoryRequirements(vkd, vkDevice, *m_textureImag… in updateTextureData()
370 …VK_CHECK(vkd.bindImageMemory(vkDevice, *m_textureImage, m_textureImageMemory->getMemory(), m_textu… in updateTextureData()
374 …pipeline::uploadTestTexture(vkd, vkDevice, queue, queueFamilyIndex, allocator, *m_textureData, *m_… in updateTextureData()
380 const VkDevice vkDevice = m_context.getDevice(); in updateTextureViewMipLevels() local
404 m_textureImageView = createImageView(vkd, vkDevice, &viewParams); in updateTextureViewMipLevels()
427 const VkDevice vkDevice = m_context.getDevice(); in TextureRenderer() local
432 …m_commandPool = createCommandPool(vkd, vkDevice, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, … in TextureRenderer()
474 m_image = vk::createImage(vkd, vkDevice, &imageCreateInfo, DE_NULL); in TextureRenderer()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp611 const VkDevice vkDevice = m_context.getDevice(); in addAttribute() local
628 Move<VkBuffer> buffer = createBuffer(vk, vkDevice, &vertexBufferParams); in addAttribute()
629 …_context.getDefaultAllocator().allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), Memory… in addAttribute()
631 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, alloc->getMemory(), alloc->getOffset())); in addAttribute()
634 flushMappedMemoryRange(vk, vkDevice, alloc->getMemory(), alloc->getOffset(), inputSize); in addAttribute()
733 const VkDevice vkDevice = m_context.getDevice(); in execute() local
771 …kDescriptorSetLayout> emptyDescriptorSetLayout (createEmptyDescriptorSetLayout(vk, vkDevice)); in execute()
772 Unique<VkDescriptorPool> dummyDescriptorPool (createDummyDescriptorPool(vk, vkDevice)); in execute()
773 …Unique<VkDescriptorSet> emptyDescriptorSet (allocateSingleDescriptorSet(vk, vkDevice, *du… in execute()
840 Move<VkImage> colorImage = createImage(vk, vkDevice, &colorImageParams); in execute()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmGraphicsShaderTestUtil.cpp332 const VkDevice vkDevice, in createPipelineShaderStages() argument
340 …const ModuleHandleSp mod(new Unique<VkShaderModule>(createShaderModule(vk, vkDevice, context.getBi… in createPipelineShaderStages()
2155 Move<VkBuffer> createBufferForResource(const DeviceInterface& vk, const VkDevice vkDevice, const Re… in createBufferForResource() argument
2169 return createBuffer(vk, vkDevice, &resourceBufferParams); in createBufferForResource()
2255 …const Unique<VkDevice> vkDevice (createDeviceWithExtensions(context, queueFamilyIndex, con… in runAndVerifyDefaultPipeline() local
2256 const DeviceDriver vk (vkInstance, *vkDevice); in runAndVerifyDefaultPipeline()
2257 const VkQueue queue = getDeviceQueue(vk, *vkDevice, queueFamilyIndex, 0); in runAndVerifyDefaultPipeline()
2258 …uePtr<Allocator> allocatorUptr (createAllocator(vkInstance, vkPhysicalDevice, vk, *vkDevice)); in runAndVerifyDefaultPipeline()
2310 const Unique<VkBuffer> vertexBuffer (createBuffer(vk, *vkDevice, &vertexBufferParams)); in runAndVerifyDefaultPipeline()
2311 …ertexBufferMemory (allocator.allocate(getBufferMemoryRequirements(vk, *vkDevice, *vertexBuffer), … in runAndVerifyDefaultPipeline()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRender.cpp781 const VkDevice vkDevice = getDevice(); in setupUniformData() local
797 Move<VkBuffer> buffer = createBuffer(vk, vkDevice, &uniformBufferParams); in setupUniformData()
798 …de::MovePtr<Allocation> alloc = m_memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice,… in setupUniformData()
799 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, alloc->getMemory(), alloc->getOffset())); in setupUniformData()
802 flushMappedMemoryRange(vk, vkDevice, alloc->getMemory(), alloc->getOffset(), size); in setupUniformData()
851 const VkDevice vkDevice = getDevice(); in addAttribute() local
868 Move<VkBuffer> buffer = createBuffer(vk, vkDevice, &vertexBufferParams); in addAttribute()
869 …ion> alloc = m_memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), Memory… in addAttribute()
870 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, alloc->getMemory(), alloc->getOffset())); in addAttribute()
873 flushMappedMemoryRange(vk, vkDevice, alloc->getMemory(), alloc->getOffset(), inputSize); in addAttribute()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/compute/
DvktComputeTestsUtil.cpp163 const VkDevice vkDevice, in makeBufferView() argument
179 return createBufferView(vk, vkDevice, &bufferViewParams); in makeBufferView()
183 const VkDevice vkDevice, in makeImageView() argument
200 return createImageView(vk, vkDevice, &imageViewParams); in makeImageView()
/external/deqp/external/vulkancts/modules/vulkan/rasterization/
DvktRasterizationTests.cpp213 const VkDevice vkDevice = m_context.getDevice(); in BaseRenderingTestInstance() local
220 …m_commandPool = createCommandPool(vkd, vkDevice, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, … in BaseRenderingTestInstance()
262 m_image = vk::createImage(vkd, vkDevice, &imageCreateInfo, DE_NULL); in BaseRenderingTestInstance()
264 …m_imageMemory = allocator.allocate(getImageMemoryRequirements(vkd, vkDevice, *m_image), MemoryRequ… in BaseRenderingTestInstance()
265 …VK_CHECK(vkd.bindImageMemory(vkDevice, *m_image, m_imageMemory->getMemory(), m_imageMemory->getOff… in BaseRenderingTestInstance()
288 m_imageView = vk::createImageView(vkd, vkDevice, &imageViewCreateInfo, DE_NULL); in BaseRenderingTestInstance()
328 m_resolvedImage = vk::createImage(vkd, vkDevice, &imageCreateInfo, DE_NULL); in BaseRenderingTestInstance()
329 …m_resolvedImageMemory = allocator.allocate(getImageMemoryRequirements(vkd, vkDevice, *m_resolvedIm… in BaseRenderingTestInstance()
330 …VK_CHECK(vkd.bindImageMemory(vkDevice, *m_resolvedImage, m_resolvedImageMemory->getMemory(), m_res… in BaseRenderingTestInstance()
353 m_resolvedImageView = vk::createImageView(vkd, vkDevice, &imageViewCreateInfo, DE_NULL); in BaseRenderingTestInstance()
[all …]

12