Home
last modified time | relevance | path

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

12

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiCommandBuffersTests.cpp346 const VkDevice vkDevice = context.getDevice(); in createPoolNullParamsTest() local
350 createCommandPool(vk, vkDevice, 0u, queueFamilyIndex); in createPoolNullParamsTest()
357 const VkDevice vkDevice = context.getDevice(); in createPoolNonNullAllocatorTest() local
370 createCommandPool(vk, vkDevice, &cmdPoolParams, allocationCallbacks); in createPoolNonNullAllocatorTest()
377 const VkDevice vkDevice = context.getDevice(); in createPoolTransientBitTest() local
389 createCommandPool(vk, vkDevice, &cmdPoolParams, DE_NULL); in createPoolTransientBitTest()
396 const VkDevice vkDevice = context.getDevice(); in createPoolResetBitTest() local
408 createCommandPool(vk, vkDevice, &cmdPoolParams, DE_NULL); in createPoolResetBitTest()
415 const VkDevice vkDevice = context.getDevice(); in resetPoolReleaseResourcesBitTest() local
427 …const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, &cmdPoolParams, DE_NUL… in resetPoolReleaseResourcesBitTest()
[all …]
DvktApiSmokeTests.cpp66 const VkDevice vkDevice = context.getDevice(); in createSamplerTest() local
92 Move<VkSampler> tmpSampler = createSampler(vk, vkDevice, &samplerInfo); in createSamplerTest()
113 const VkDevice vkDevice = context.getDevice(); in createShaderModuleTest() local
115 …const Unique<VkShaderModule> shader (createShaderModule(vk, vkDevice, context.getBinaryCollection… in createShaderModuleTest()
334 const VkDevice vkDevice = context.getDevice(); in renderTriangleTest() local
338 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInst… in renderTriangleTest()
361 const Unique<VkBuffer> vertexBuffer (createBuffer(vk, vkDevice, &vertexBufferParams)); in renderTriangleTest()
362 … vertexBufferMemory (memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *vertexBuffer), … in renderTriangleTest()
364 …VK_CHECK(vk.bindBufferMemory(vkDevice, *vertexBuffer, vertexBufferMemory->getMemory(), vertexBuffe… in renderTriangleTest()
378 const Unique<VkBuffer> readImageBuffer (createBuffer(vk, vkDevice, &readImageBufferParams)); in renderTriangleTest()
[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()
82 const VkDevice vkDevice = context.getDevice(); in createTestBuffer() local
99 buffer = vk::createBuffer(vk, vkDevice, &bufferParams, (const VkAllocationCallbacks*)DE_NULL); in createTestBuffer()
100 memory = allocateDedicated(vkInstance, vk, vkPhysicalDevice, vkDevice, buffer.get(), requirement); in createTestBuffer()
101 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, memory->getMemory(), memory->getOffset())); in createTestBuffer()
113 const VkDevice vkDevice = context.getDevice(); in createTestImage() local
137 image = createImage(vk, vkDevice, &colorImageParams); in createTestImage()
[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()
206 m_renderPass = makeRenderPass(vk, vkDevice, m_colorFormat); in BufferViewTestInstance()
228 m_framebuffer = createFramebuffer(vk, vkDevice, &framebufferParams); in BufferViewTestInstance()
255 m_descriptorSetLayout = createDescriptorSetLayout(vk, vkDevice, &descriptorLayoutParams); in BufferViewTestInstance()
265 flushAlloc(vk, vkDevice, *m_uniformBufferAlloc); in BufferViewTestInstance()
278 m_uniformBufferView = createBufferView(vk, vkDevice, &viewInfo); in BufferViewTestInstance()
299 m_descriptorPool = createDescriptorPool(vk, vkDevice, &descriptorPoolParams); in BufferViewTestInstance()
310 m_descriptorSet = allocateDescriptorSet(vk, vkDevice, &descriptorSetParams); in BufferViewTestInstance()
[all …]
DvktApiBufferViewCreateTests.cpp149 const VkDevice vkDevice = context.getDevice(); in createTestBuffer() local
167 testBuffer = vk::createBuffer(vk, vkDevice, &bufferParams, (const VkAllocationCallbacks*)DE_NULL); in createTestBuffer()
174 vk.getBufferMemoryRequirements(vkDevice, *testBuffer, &memReqs); in createTestBuffer()
193 memory = allocateMemory(vk, vkDevice, &memAlloc, (const VkAllocationCallbacks*)DE_NULL); in createTestBuffer()
200 if (vk.bindBufferMemory(vkDevice, *testBuffer, *memory, 0) != VK_SUCCESS) in createTestBuffer()
213 const VkDevice vkDevice = context.getDevice(); in createTestBuffer() local
246 testBuffer = vk::createBuffer(vk, vkDevice, &bufferParams, (const VkAllocationCallbacks*)DE_NULL); in createTestBuffer()
260 vk.getBufferMemoryRequirements2(vkDevice, &info, &memReqs); in createTestBuffer()
281 vk.getBufferMemoryRequirements2(vkDevice, &info, &memReqs); // get the proper size requirement in createTestBuffer()
311 …result = vk.allocateMemory(vkDevice, &memoryAllocateInfo, (VkAllocationCallbacks*)DE_NULL, &rawMem… in createTestBuffer()
[all …]
DvktApiBufferTests.cpp199 const VkDevice vkDevice = m_context.getDevice(); in bufferCreateAndAllocTest() local
229 buffer = createBuffer(vk, vkDevice, &bufferParams); in bufferCreateAndAllocTest()
230 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs); in bufferCreateAndAllocTest()
261 …result = vk.createBuffer(vkDevice, &bufferParams, (vk::VkAllocationCallbacks*)DE_NULL, &rawBuffer); in bufferCreateAndAllocTest()
275 buffer = Move<VkBuffer>(check<VkBuffer>(rawBuffer), Deleter<VkBuffer>(vk, vkDevice, DE_NULL)); in bufferCreateAndAllocTest()
278 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs); // get the proper size requirement in bufferCreateAndAllocTest()
301 result = vk.allocateMemory(vkDevice, &memAlloc, (VkAllocationCallbacks*)DE_NULL, &rawMemory); in bufferCreateAndAllocTest()
315 …<VkDeviceMemory>(check<VkDeviceMemory>(rawMemory), Deleter<VkDeviceMemory>(vk, vkDevice, DE_NULL)); in bufferCreateAndAllocTest()
358 const vk::Unique<vk::VkFence> fence (vk::createFence(vk, vkDevice)); in bufferCreateAndAllocTest()
363 VK_CHECK(vk.waitForFences(vkDevice, 1, &fence.get(), VK_TRUE, ~(0ull) /* infinity */)); in bufferCreateAndAllocTest()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassUnusedAttachmentTests.cpp100 VkDevice vkDevice, in createRenderPass() argument
226 return renderPassInfo.createRenderPass(vk, vkDevice); in createRenderPass()
252 VkDevice vkDevice);
357 const VkDevice vkDevice = m_context.getDevice(); in UnusedAttachmentTestInstance() local
359 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(m_context.getInsta… in UnusedAttachmentTestInstance()
387 m_colorImage = createImage(vk, vkDevice, &colorImageParams); in UnusedAttachmentTestInstance()
390 …m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), Me… in UnusedAttachmentTestInstance()
391 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in UnusedAttachmentTestInstance()
416 m_unusedImage = createImage(vk, vkDevice, &unusedImageParams); in UnusedAttachmentTestInstance()
419 …VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vk, vkDevice, *m_unusedImage); in UnusedAttachmentTestInstance()
[all …]
DvktRenderPassMultipleSubpassesMultipleCommandBuffersTests.cpp98 VkDevice vkDevice);
180 Move<VkRenderPass> createRenderPass (const DeviceInterface& vk, VkDevice vkDevice) in createRenderPass() argument
256 return createRenderPass(vk, vkDevice, &renderPassInfo); in createRenderPass()
275 const VkDevice vkDevice = m_context.getDevice(); in MultipleSubpassesMultipleCommandBuffersTestInstance() local
277 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(m_context.getInsta… in MultipleSubpassesMultipleCommandBuffersTestInstance()
302 m_colorImageA = createImage(vk, vkDevice, &colorImageParams); in MultipleSubpassesMultipleCommandBuffersTestInstance()
303 …m_colorImageAllocA = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImageA), M… in MultipleSubpassesMultipleCommandBuffersTestInstance()
304 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImageA, m_colorImageAllocA->getMemory(), m_colorImag… in MultipleSubpassesMultipleCommandBuffersTestInstance()
306 m_colorImageB = createImage(vk, vkDevice, &colorImageParams); in MultipleSubpassesMultipleCommandBuffersTestInstance()
307 …m_colorImageAllocB = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImageB), M… in MultipleSubpassesMultipleCommandBuffersTestInstance()
[all …]
DvktRenderPassUnusedAttachmentSparseFillingTests.cpp141 VkDevice vkDevice);
145 VkDevice vkDevice);
265 const VkDevice vkDevice = m_context.getDevice(); in InputAttachmentSparseFillingTestInstance() local
267 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(m_context.getIns… in InputAttachmentSparseFillingTestInstance()
305 …auto inputImage = safeSharedPtr(new Unique<VkImage>(vk::createImage(vk, vkDevice, &inputImageP… in InputAttachmentSparseFillingTestInstance()
307 …auto inputImageAlloc = safeSharedPtr(memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, … in InputAttachmentSparseFillingTestInstance()
308 …VK_CHECK(vk.bindImageMemory(vkDevice, **inputImage, inputImageAlloc->getMemory(), inputImageAlloc-… in InputAttachmentSparseFillingTestInstance()
311 …auto inputImageView = safeSharedPtr(new Unique<VkImageView>(createImageView(vk, vkDevice, &inpu… in InputAttachmentSparseFillingTestInstance()
340 …m_outputImage = safeSharedPtr(new Unique<VkImage>(vk::createImage(vk, vkDevice, &outputImageParam… in InputAttachmentSparseFillingTestInstance()
341 …m_outputImageMemory = safeSharedPtr(memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, **m… in InputAttachmentSparseFillingTestInstance()
[all …]
DvktRenderPassUnusedClearAttachmentTests.cpp184 VkDevice vkDevice);
320 VkDevice vkDevice, in createRenderPass() argument
417 return renderPassInfo.createRenderPass(vk, vkDevice); in createRenderPass()
444 const VkDevice vkDevice = m_context.getDevice(); in UnusedClearAttachmentTestInstance() local
446 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(m_context.getInsta… in UnusedClearAttachmentTestInstance()
494 m_colorImages.emplace_back(createImage(vk, vkDevice, &colorImageParams)); in UnusedClearAttachmentTestInstance()
495 …m_colorImageAllocs.emplace_back(memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colo… in UnusedClearAttachmentTestInstance()
496 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImages.back(), m_colorImageAllocs.back()->getMemory(… in UnusedClearAttachmentTestInstance()
512 m_colorAttachmentViews.emplace_back(createImageView(vk, vkDevice, &colorAttachmentViewParams)); in UnusedClearAttachmentTestInstance()
522 …cmdPool = createCommandPool(vk, vkDevice, VK_COMMAND_POOL_CREATE_TRANSIENT_BIT, queueFamilyIndex); in UnusedClearAttachmentTestInstance()
[all …]
DvktRenderPassFragmentDensityMapTests.cpp219 VkDevice vkDevice, in createVertexBuffer() argument
238 vertexBuffer = createBuffer(vk, vkDevice, &vertexBufferParams); in createVertexBuffer()
239 …vertexAlloc = memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *vertexBuffer), MemoryR… in createVertexBuffer()
240 …VK_CHECK(vk.bindBufferMemory(vkDevice, *vertexBuffer, vertexAlloc->getMemory(), vertexAlloc->getOf… in createVertexBuffer()
244 flushAlloc(vk, vkDevice, *vertexAlloc); in createVertexBuffer()
248 VkDevice vkDevice, in prepareImageAndImageView() argument
284 image = createImage(vk, vkDevice, &imageCreateInfo); in prepareImageAndImageView()
287 …imageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *image), MemoryRequirement… in prepareImageAndImageView()
288 VK_CHECK(vk.bindImageMemory(vkDevice, *image, imageAlloc->getMemory(), imageAlloc->getOffset())); in prepareImageAndImageView()
303 imageView = createImageView(vk, vkDevice, &imageViewCreateInfo); in prepareImageAndImageView()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DFencedDeleter.cpp103 VkDevice vkDevice = mDevice->GetVkDevice(); in Tick() local
109 mDevice->fn.DestroyBuffer(vkDevice, buffer, nullptr); in Tick()
113 mDevice->fn.DestroyImage(vkDevice, image, nullptr); in Tick()
118 mDevice->fn.FreeMemory(vkDevice, memory, nullptr); in Tick()
123 mDevice->fn.DestroyPipelineLayout(vkDevice, layout, nullptr); in Tick()
128 mDevice->fn.DestroyRenderPass(vkDevice, renderPass, nullptr); in Tick()
133 mDevice->fn.DestroyFramebuffer(vkDevice, framebuffer, nullptr); in Tick()
138 mDevice->fn.DestroyImageView(vkDevice, view, nullptr); in Tick()
143 mDevice->fn.DestroyShaderModule(vkDevice, module, nullptr); in Tick()
148 mDevice->fn.DestroyPipeline(vkDevice, pipeline, nullptr); in Tick()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
DvktMemoryBindingTests.cpp442 const VkDevice vkDevice = ctx.getDevice(); in createBindingTargets() local
449 targets.push_back(BufferPtr(new Move<VkBuffer>(createBuffer(vk, vkDevice, &bufferParams)))); in createBindingTargets()
459 const VkDevice vkDevice = ctx.getDevice(); in createBindingTargets() local
466 targets.push_back(ImagePtr(new Move<VkImage>(createImage(vk, vkDevice, &imageParams)))); in createBindingTargets()
486 const VkDevice vkDevice = ctx.getDevice(); in createMemory() local
493 vk.getBufferMemoryRequirements(vkDevice, **targets[i], &memReqs); in createMemory()
499 vk.allocateMemory(vkDevice, &memAlloc, (VkAllocationCallbacks*)DE_NULL, &rawMemory); in createMemory()
500 …kDeviceMemory>(check<VkDeviceMemory>(rawMemory), Deleter<VkDeviceMemory>(vk, vkDevice, DE_NULL)))); in createMemory()
513 const VkDevice vkDevice = ctx.getDevice(); in createMemory() local
519 vk.getImageMemoryRequirements(vkDevice, **targets[i], &memReqs); in createMemory()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineDerivativeTests.cpp80 const VkDevice vkDevice = context.getDevice(); in testComputeDerivativeByHandle() local
81 …Move<VkShaderModule> shaderModule = createShaderModule(vk, vkDevice, context.getBinaryCollection(… in testComputeDerivativeByHandle()
83 Move<VkPipelineLayout> layout = makePipelineLayout(vk, vkDevice); in testComputeDerivativeByHandle()
103 Move<VkPipeline> basePipeline = createComputePipeline(vk, vkDevice, DE_NULL, &cpci); in testComputeDerivativeByHandle()
109 Move<VkPipeline> derivedPipeline = createComputePipeline(vk, vkDevice, DE_NULL, &cpci); in testComputeDerivativeByHandle()
118 const VkDevice vkDevice = context.getDevice(); in testComputeDerivativeByIndex() local
119 …Move<VkShaderModule> shaderModule = createShaderModule(vk, vkDevice, context.getBinaryCollection(… in testComputeDerivativeByIndex()
121 Move<VkPipelineLayout> layout = makePipelineLayout(vk, vkDevice); in testComputeDerivativeByIndex()
158 vk.createComputePipelines(vkDevice, 0, 2, cpci, DE_NULL, rawPipelines.data()); in testComputeDerivativeByIndex()
161 vk.destroyPipeline(vkDevice, rawPipelines[i], DE_NULL); in testComputeDerivativeByIndex()
DvktPipelineCacheTests.cpp197 const VkDevice vkDevice = m_context.getDevice(); in bindShaderStage() local
212 m_shaderModules[m_shaderStageCount] = createShaderModule(vk, vkDevice, &moduleCreateInfo); in bindShaderStage()
229 const VkDevice vkDevice = m_context.getDevice(); in buildPipeline() local
415 return createGraphicsPipeline(vk, vkDevice, cache, &graphicsPipelineParams); in buildPipeline()
436 const VkDevice vkDevice = context.getDevice(); in createBufferAndBindMemory() local
451 Move<VkBuffer> vertexBuffer = createBuffer(vk, vkDevice, &vertexBufferParams); in createBufferAndBindMemory()
453 …*pAlloc = context.getDefaultAllocator().allocate(getBufferMemoryRequirements(vk, vkDevice, *vertex… in createBufferAndBindMemory()
454 …VK_CHECK(vk.bindBufferMemory(vkDevice, *vertexBuffer, (*pAlloc)->getMemory(), (*pAlloc)->getOffset… in createBufferAndBindMemory()
468 const VkDevice vkDevice = context.getDevice(); in createImage2DAndBindMemory() local
490 Move<VkImage> image = createImage(vk, vkDevice, &colorImageParams); in createImage2DAndBindMemory()
[all …]
DvktPipelineEarlyDestroyTests.cpp80 const VkDevice vkDevice = context.getDevice(); in testEarlyDestroy() local
81 …const Unique<VkShaderModule> vertexShaderModule (createShaderModule(vk, vkDevice, context.… in testEarlyDestroy()
82 …const Unique<VkShaderModule> fragmentShaderModule (createShaderModule(vk, vkDevice, context… in testEarlyDestroy()
84 …const Unique<VkCommandPool> cmdPool (createCommandPool(vk, vkDevice, VK_COMMAND_POOL_C… in testEarlyDestroy()
85 …const Unique<VkCommandBuffer> cmdBuffer (allocateCommandBuffer(vk, vkDevice, *cmdPool, V… in testEarlyDestroy()
102 …Move<VkPipelineLayout> pipelineLayout (createPipelineLayout(vk, vkDevice, &pipelineLayou… in testEarlyDestroy()
103 …const Unique<VkRenderPass> renderPass (makeRenderPass(vk, vkDevice, VK_FORMAT_R8G8B8A8_U… in testEarlyDestroy()
189 …const Unique<VkPipelineCache> pipelineCache (createPipelineCache(vk, vkDevice, &pipelineCa… in testEarlyDestroy()
212 …createGraphicsPipeline(vk, vkDevice, usePipelineCache ? *pipelineCache : DE_NULL, &graphicsPipelin… in testEarlyDestroy()
257 …const ImageWithMemory attachmentImage (vk, vkDevice, context.getDefaultAllocator(), image… in testEarlyDestroy()
[all …]
DvktPipelinePushConstantTests.cpp290 const VkDevice vkDevice = m_context.getDevice(); in init() local
292 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(m_context.getIn… in init()
320 m_colorImage = createImage(vk, vkDevice, &m_colorImageCreateInfo); in init()
323 …m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), Me… in init()
324 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in init()
341 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in init()
345 m_renderPass = makeRenderPass(vk, vkDevice, m_colorFormat); in init()
367 m_framebuffer = createFramebuffer(vk, vkDevice, &framebufferParams); in init()
373 …ddSingleBinding(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, VK_SHADER_STAGE_VERTEX_BIT).build(vk, vkDevice); in init()
376 …rPoolBuilder().addType(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1u).build(vk, vkDevice, VK_DESCRIPTOR_PO… in init()
[all …]
DvktPipelineStencilTests.cpp360 const VkDevice vkDevice = context.getDevice(); in StencilTestInstance() local
362 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInstanc… in StencilTestInstance()
388 m_colorImage = createImage(vk, vkDevice, &m_colorImageCreateInfo); in StencilTestInstance()
391 …m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), Me… in StencilTestInstance()
392 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in StencilTestInstance()
418 m_stencilImage = createImage(vk, vkDevice, &stencilImageParams); in StencilTestInstance()
421 …m_stencilImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_stencilImage),… in StencilTestInstance()
422 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_stencilImage, m_stencilImageAlloc->getMemory(), m_stencil… in StencilTestInstance()
444 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in StencilTestInstance()
461 m_stencilAttachmentView = createImageView(vk, vkDevice, &stencilAttachmentViewParams); in StencilTestInstance()
[all …]
DvktPipelineDynamicOffsetTests.cpp181 const VkDevice vkDevice = m_context.getDevice(); in init() local
220 m_colorImage = createImage(vk, vkDevice, &m_colorImageCreateInfo); in init()
223 …m_colorImageAlloc = m_memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), … in init()
224 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in init()
241 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in init()
306 …m_renderPasses.push_back(VkRenderPassSp(new Unique<VkRenderPass>(createRenderPass(vk, vkDevice, &r… in init()
330 …m_framebuffers.push_back(VkFramebufferSp(new Unique<VkFramebuffer>(createFramebuffer(vk, vkDevice,… in init()
373 …m_descriptorSetLayouts.push_back(createDescriptorSetLayout(vk, vkDevice, &descriptorSetLayoutCreat… in init()
388 …m_descriptorSetLayouts.push_back(createDescriptorSetLayout(vk, vkDevice, &descriptorSetLayoutCreat… in init()
408 m_pipelineLayout = createPipelineLayout(vk, vkDevice, &pipelineLayoutParams); in init()
[all …]
DvktPipelineTimestampTests.cpp468 const VkDevice vkDevice = m_context.getDevice(); in bindShaderStage() local
483 m_shaderModules[m_shaderStageCount] = createShaderModule(vk, vkDevice, &moduleCreateInfo); in bindShaderStage()
492 const VkDevice vkDevice = m_context.getDevice(); in buildPipeline() local
526 m_pipelineLayout = createPipelineLayout(vk, vkDevice, &pipelineLayoutParams); in buildPipeline()
604 vkDevice, // const VkDevice device in buildPipeline()
754 const VkDevice vkDevice = context.getDevice(); in TimestampTestInstance() local
771 m_queryPool = createQueryPool(vk, vkDevice, &queryPoolParams); in TimestampTestInstance()
775 …m_cmdPool = createCommandPool(vk, vkDevice, VK_COMMAND_POOL_CREATE_TRANSIENT_BIT, queueFamilyIndex… in TimestampTestInstance()
778 m_cmdBuffer = allocateCommandBuffer(vk, vkDevice, *m_cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY); in TimestampTestInstance()
819 const VkDevice vkDevice = m_context.getDevice(); in iterate() local
[all …]
DvktPipelineMatchedAttachmentsTests.cpp73 const VkDevice vkDevice = context.getDevice(); in testMatchedAttachments() local
74 …const Unique<VkShaderModule> vertexShaderModule (createShaderModule(vk, vkDevice, context.g… in testMatchedAttachments()
75 …const Unique<VkShaderModule> fragmentShaderModule (createShaderModule(vk, vkDevice, context.… in testMatchedAttachments()
95 …ptorSetLayout> descriptorSetLayout (createDescriptorSetLayout(vk, vkDevice, &descriptorSetLa… in testMatchedAttachments()
108 …const Unique<VkPipelineLayout> pipelineLayout (createPipelineLayout(vk, vkDevice, &pipelin… in testMatchedAttachments()
175 …const Unique<VkRenderPass> renderPass (createRenderPass(vk, vkDevice, &renderPassCreateI… in testMatchedAttachments()
186 …const Unique<VkPipelineCache> pipelineCache (createPipelineCache(vk, vkDevice, &pipelineCa… in testMatchedAttachments()
333 …createGraphicsPipeline(vk, vkDevice, params.usePipelineCache ? *pipelineCache : DE_NULL, &graphics… in testMatchedAttachments()
DvktPipelineDepthTests.cpp317 const VkDevice vkDevice = context.getDevice(); in DepthTestInstance() local
319 …SimpleAllocator memAlloc (vk, vkDevice, getPhysicalDeviceMemoryProperties(context.getInstanc… in DepthTestInstance()
347 m_colorImage = createImage(vk, vkDevice, &colorImageParams); in DepthTestInstance()
350 …m_colorImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_colorImage), Me… in DepthTestInstance()
351 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_colorImage, m_colorImageAlloc->getMemory(), m_colorImageA… in DepthTestInstance()
376 m_depthImage = createImage(vk, vkDevice, &depthImageParams); in DepthTestInstance()
379 …m_depthImageAlloc = memAlloc.allocate(getImageMemoryRequirements(vk, vkDevice, *m_depthImage), Mem… in DepthTestInstance()
380 …VK_CHECK(vk.bindImageMemory(vkDevice, *m_depthImage, m_depthImageAlloc->getMemory(), m_depthImageA… in DepthTestInstance()
402 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in DepthTestInstance()
419 m_depthAttachmentView = createImageView(vk, vkDevice, &depthAttachmentViewParams); in DepthTestInstance()
[all …]
DvktPipelineLogicOpTests.cpp250 const VkDevice vkDevice = m_context.getDevice(); in LogicOpTestInstance() local
277 …m_colorImage = de::MovePtr<ImageWithMemory>(new ImageWithMemory(vk, vkDevice, memAlloc, m_colorI… in LogicOpTestInstance()
295 m_colorAttachmentView = createImageView(vk, vkDevice, &colorAttachmentViewParams); in LogicOpTestInstance()
298 m_renderPass = makeRenderPass(vk, vkDevice, m_params.format); in LogicOpTestInstance()
299 …m_framebuffer = makeFramebuffer(vk, vkDevice, *m_renderPass, m_colorAttachmentView.get(), m_render… in LogicOpTestInstance()
321 m_pipelineLayout = createPipelineLayout(vk, vkDevice, &pipelineLayoutParams); in LogicOpTestInstance()
324 …m_vertexShaderModule = createShaderModule(vk, vkDevice, m_context.getBinaryCollection().get("color… in LogicOpTestInstance()
325 …m_fragmentShaderModule = createShaderModule(vk, vkDevice, m_context.getBinaryCollection().get("col… in LogicOpTestInstance()
364 vkDevice, // const VkDevice device in LogicOpTestInstance()
385 …m_cmdPool = createCommandPool(vk, vkDevice, VK_COMMAND_POOL_CREATE_TRANSIENT_BIT, queueFamilyIndex… in LogicOpTestInstance()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmCrossStageInterfaceTests.cpp196 const VkDevice vkDevice = m_context.getDevice(); in iterate() local
203 Move<VkBuffer> vertexBuffer = createBuffer(vk, vkDevice, &bufferInfo); in iterate()
204 …_context.getDefaultAllocator().allocate(getBufferMemoryRequirements(vk, vkDevice, *vertexBuffer), … in iterate()
210 Move<VkImage> colorAttachmentImage = createImage(vk, vkDevice, &colorAttachmentInfo); in iterate()
211 …m_context.getDefaultAllocator().allocate(getImageMemoryRequirements(vk, vkDevice, *colorAttachment… in iterate()
212 …VK_CHECK(vk.bindImageMemory(vkDevice, *colorAttachmentImage, allocationAttachment->getMemory(), al… in iterate()
213 …Move<VkImageView> colorAttachmentView = makeImageView(vk, vkDevice, *colorAttachmentImage, V… in iterate()
219 …VK_CHECK(vk.bindBufferMemory(vkDevice, *vertexBuffer, allocationVertex->getMemory(), allocationVer… in iterate()
221 flushAlloc(vk, vkDevice, *allocationVertex); in iterate()
223 Move<VkRenderPass> renderPass = makeRenderPass (vk, vkDevice, m_colorFormat); in iterate()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
DvktTextureTestUtil.cpp334 const VkDevice vkDevice = m_context.getDevice(); in updateTextureData() local
407 m_textureImage = createImage(vkd, vkDevice, &imageParams); in updateTextureData()
412 vkDevice, in updateTextureData()
426 …m_textureImageMemory = allocator.allocate(getImageMemoryRequirements(vkd, vkDevice, *m_textureImag… in updateTextureData()
427 …VK_CHECK(vkd.bindImageMemory(vkDevice, *m_textureImage, m_textureImageMemory->getMemory(), m_textu… in updateTextureData()
430 vkDevice, in updateTextureData()
444 const VkDevice vkDevice = m_context.getDevice(); in updateTextureViewMipLevels() local
467 m_textureImageView = createImageView(vkd, vkDevice, &viewParams); in updateTextureViewMipLevels()
497 const VkDevice vkDevice = m_context.getDevice(); in TextureRenderer() local
502 …m_commandPool = createCommandPool(vkd, vkDevice, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, … in TextureRenderer()
[all …]

12