Home
last modified time | relevance | path

Searched refs:bufferAlloc (Results 1 – 15 of 15) sorted by relevance

/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImageUtil.cpp202 de::MovePtr<Allocation> bufferAlloc; in readColorAttachment() local
225bufferAlloc = allocator.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequireme… in readColorAttachment()
226 …VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset())); in readColorAttachment()
243 invalidateAlloc(vk, device, *bufferAlloc); in readColorAttachment()
244 …nstPixelBufferAccess(resultLevel->getFormat(), resultLevel->getSize(), bufferAlloc->getHostPtr())); in readColorAttachment()
260 de::MovePtr<Allocation> bufferAlloc; in uploadTestTextureInternal() local
292bufferAlloc = allocator.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequireme… in uploadTestTextureInternal()
293 …VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset())); in uploadTestTextureInternal()
298 srcTexture.write(reinterpret_cast<deUint8*>(bufferAlloc->getHostPtr())); in uploadTestTextureInternal()
304 srcStencilTexture->write(reinterpret_cast<deUint8*>(bufferAlloc->getHostPtr()) + stencilOffset); in uploadTestTextureInternal()
[all …]
DvktPipelineMultisampleBaseResolveAndPerSampleFetch.cpp759 const Allocation& bufferAlloc = buffersPerSample[sampleNdx]->getAllocation(); in iterate() local
761 invalidateAlloc(deviceInterface, device, bufferAlloc); in iterate()
769 bufferAlloc.getHostPtr() in iterate()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmComputeShaderCase.cpp496 AllocationMp bufferAlloc; in iterate() local
497 …reateBufferAndBindMemory(vkdi, device, descType, allocator, numBytes, &bufferAlloc, m_shaderSpec.c… in iterate()
499 …setMemory(vkdi, device, &*bufferAlloc, numBytes, &inputBytes.front(), m_shaderSpec.coherentMemory); in iterate()
501 inputAllocs.push_back(de::SharedPtr<Allocation>(bufferAlloc.release())); in iterate()
513 AllocationMp bufferAlloc; in iterate() local
514 …fferHandleUp(createBufferAndBindMemory(vkdi, device, descType, allocator, numBytes, &bufferAlloc)); in iterate()
519 setMemory(vkdi, device, &*bufferAlloc, numBytes, &inputBytes.front()); in iterate()
522 inputAllocs.push_back(de::SharedPtr<Allocation>(bufferAlloc.release())); in iterate()
DvktSpvAsmCrossStageInterfaceTests.cpp604 MovePtr<Allocation> bufferAlloc; in checkImage() local
624bufferAlloc = m_context.getDefaultAllocator().allocate(getBufferMemoryRequirements(vk, vkDevice, *… in checkImage()
625 …VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()… in checkImage()
627 deMemset(bufferAlloc->getHostPtr(), 0, static_cast<size_t>(pixelDataSize)); in checkImage()
628 flushAlloc(vk, vkDevice, *bufferAlloc); in checkImage()
637 invalidateAlloc(vk, vkDevice, *bufferAlloc); in checkImage()
638 …tcu::copy(dst, tcu::ConstPixelBufferAccess(dst.getFormat(), dst.getSize(), bufferAlloc->getHostPtr… in checkImage()
/external/deqp/external/vulkancts/modules/vulkan/geometry/
DvktGeometryBasicGeometryShaderTests.cpp104 de::MovePtr<Allocation> bufferAlloc; in uploadImage() local
123bufferAlloc = memAlloc.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequiremen… in uploadImage()
124 …VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset())); in uploadImage()
150 …const tcu::PixelBufferAccess destAccess (access.getFormat(), access.getSize(), bufferAlloc->getHos… in uploadImage()
152 flushAlloc(vk, device, *bufferAlloc); in uploadImage()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiFillBufferTests.cpp95 const Allocation& bufferAlloc);
187 const Allocation& bufferAlloc) in uploadBuffer() argument
194 deMemcpy(bufferAlloc.getHostPtr(), bufferAccess.getDataPtr(), bufferSize); in uploadBuffer()
195 flushAlloc(vk, vkDevice, bufferAlloc); in uploadBuffer()
DvktApiImageClearingTests.cpp902 de::MovePtr<Allocation> bufferAlloc; in readImage() local
919bufferAlloc = allocateBuffer(m_vki, m_vkd, m_context.getPhysicalDevice(), m_device, *buffer, Memor… in readImage()
920 …VK_CHECK(m_vkd.bindBufferMemory(m_device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffse… in readImage()
981 invalidateAlloc(m_vkd, m_device, *bufferAlloc); in readImage()
988 …const void* pLevelData = static_cast<const void*>(reinterpret_cast<deUint8*>(bufferAlloc->getHos… in readImage()
DvktApiCopiesAndBlittingTests.cpp324 … uploadBuffer (tcu::ConstPixelBufferAccess bufferAccess, const Allocation& bufferAlloc);
447 …estInstance::uploadBuffer (tcu::ConstPixelBufferAccess bufferAccess, const Allocation& bufferAlloc) in uploadBuffer() argument
454 deMemcpy(bufferAlloc.getHostPtr(), bufferAccess.getDataPtr(), bufferSize); in uploadBuffer()
455 flushAlloc(vk, vkDevice, bufferAlloc); in uploadBuffer()
469 de::MovePtr<Allocation> bufferAlloc; in uploadImageAspect() local
489bufferAlloc = allocateBuffer(vki, vk, vkPhysDevice, vkDevice, *buffer, MemoryRequirement::HostVisi… in uploadImageAspect()
490 …VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()… in uploadImageAspect()
578 deMemcpy(bufferAlloc->getHostPtr(), imageAccess.getDataPtr(), bufferSize); in uploadImageAspect()
579 flushAlloc(vk, vkDevice, *bufferAlloc); in uploadImageAspect()
671 de::MovePtr<Allocation> bufferAlloc; in readImageAspect() local
[all …]
DvktApiCommandBuffersTests.cpp298 de::MovePtr<Allocation> bufferAlloc; in readColorAttachment() local
318bufferAlloc = m_allocator.allocate(getBufferMemoryRequirements(m_vkd, m_device, *buffer), MemoryRe… in readColorAttachment()
319 …VK_CHECK(m_vkd.bindBufferMemory(m_device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffse… in readColorAttachment()
330 invalidateAlloc(m_vkd, m_device, *bufferAlloc); in readColorAttachment()
331 …nstPixelBufferAccess(resultLevel->getFormat(), resultLevel->getSize(), bufferAlloc->getHostPtr())); in readColorAttachment()
/external/deqp/external/vulkancts/modules/vulkan/multiview/
DvktMultiViewRenderTests.cpp1033 MovePtr<Allocation> bufferAlloc; in readImage() local
1051bufferAlloc = m_allocator->allocate(getBufferMemoryRequirements(*m_device, *m_logicalDevice, *buff… in readImage()
1052 …ECK(m_device->bindBufferMemory(*m_logicalDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->g… in readImage()
1054 deMemset(bufferAlloc->getHostPtr(), 0, static_cast<size_t>(pixelDataSize)); in readImage()
1055 …flushMappedMemoryRange(*m_device, *m_logicalDevice, bufferAlloc->getMemory(), bufferAlloc->getOffs… in readImage()
1111 …invalidateMappedMemoryRange(*m_device, *m_logicalDevice, bufferAlloc->getMemory(), bufferAlloc->ge… in readImage()
1112 …tcu::copy(dst, tcu::ConstPixelBufferAccess(dst.getFormat(), dst.getSize(), bufferAlloc->getHostPtr… in readImage()
1613 MovePtr<Allocation> bufferAlloc; in setImageData() local
1630bufferAlloc = m_allocator->allocate(getBufferMemoryRequirements(*m_device, *m_logicalDevice, *buff… in setImageData()
1631 …ECK(m_device->bindBufferMemory(*m_logicalDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->g… in setImageData()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageSizeTests.cpp337 const Allocation& bufferAlloc = m_resultBuffer->getAllocation(); in iterate() local
338 invalidateAlloc(vk, device, bufferAlloc); in iterate()
340 const tcu::IVec3 resultSize = readIVec3(bufferAlloc.getHostPtr()); in iterate()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRender.cpp967 de::MovePtr<Allocation> bufferAlloc; in uploadImage() local
1003bufferAlloc = m_memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), MemoryRequir… in uploadImage()
1004 …VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()… in uploadImage()
1010 deUint8* destPtr = (deUint8*)bufferAlloc->getHostPtr(); in uploadImage()
1050 flushAlloc(vk, vkDevice, *bufferAlloc); in uploadImage()
1235 de::MovePtr<Allocation> bufferAlloc; in uploadSparseImage() local
1274bufferAlloc = m_memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), MemoryRequir… in uploadSparseImage()
1276 …VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()… in uploadSparseImage()
1282 deUint8* destPtr = (deUint8*)bufferAlloc->getHostPtr(); in uploadSparseImage()
/external/deqp/external/vulkancts/modules/vulkan/robustness/
DvktRobustBufferAccessWithVariablePointersTests.cpp113 de::MovePtr<Allocation>& bufferAlloc, in createTestBuffer() argument
133 bufferAlloc = allocator.allocate(bufferMemoryReqs, MemoryRequirement::HostVisible); in createTestBuffer()
139 …VK_CHECK(deviceInterface.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->… in createTestBuffer()
140 fillBufferProc(bufferAlloc->getHostPtr(), bufferMemoryReqs.size, blob); in createTestBuffer()
141 …flushMappedMemoryRange(deviceInterface, device, bufferAlloc->getMemory(), bufferAlloc->getOffset()… in createTestBuffer()
/external/skqp/src/gpu/vk/
DGrVkGpu.cpp1406 GrVkAlloc bufferAlloc; in createTestingOnlyVkImage() local
1496 &bufferAlloc)) { in createTestingOnlyVkImage()
1514 result = copy_testing_data(this, srcData, bufferAlloc, bufferOffset, currentRowBytes, in createTestingOnlyVkImage()
1518 result = copy_testing_data(this, srcData, bufferAlloc, bufferOffset, srcRowBytes, in createTestingOnlyVkImage()
1524 GrVkMemory::FreeBufferMemory(this, GrVkBuffer::kCopyRead_Type, bufferAlloc); in createTestingOnlyVkImage()
1629 GrVkMemory::FreeBufferMemory(this, GrVkBuffer::kCopyRead_Type, bufferAlloc); in createTestingOnlyVkImage()
1640 GrVkMemory::FreeBufferMemory(this, GrVkBuffer::kCopyRead_Type, bufferAlloc); in createTestingOnlyVkImage()
/external/skia/src/gpu/vk/
DGrVkGpu.cpp1418 GrVkAlloc bufferAlloc; in createTestingOnlyVkImage() local
1508 &bufferAlloc)) { in createTestingOnlyVkImage()
1526 result = copy_testing_data(this, srcData, bufferAlloc, bufferOffset, currentRowBytes, in createTestingOnlyVkImage()
1530 result = copy_testing_data(this, srcData, bufferAlloc, bufferOffset, srcRowBytes, in createTestingOnlyVkImage()
1536 GrVkMemory::FreeBufferMemory(this, GrVkBuffer::kCopyRead_Type, bufferAlloc); in createTestingOnlyVkImage()
1641 GrVkMemory::FreeBufferMemory(this, GrVkBuffer::kCopyRead_Type, bufferAlloc); in createTestingOnlyVkImage()
1652 GrVkMemory::FreeBufferMemory(this, GrVkBuffer::kCopyRead_Type, bufferAlloc); in createTestingOnlyVkImage()