Home
last modified time | relevance | path

Searched refs:bufferAlloc (Results 1 - 25 of 82) sorted by relevance

1234

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineImageUtil.cpp244 de::MovePtr<Allocation> bufferAlloc;
267 bufferAlloc = allocator.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequirement::HostVisible);
268 VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()));
285 invalidateAlloc(vk, device, *bufferAlloc);
286 tcu::copy(*resultLevel, tcu::ConstPixelBufferAccess(resultLevel->getFormat(), resultLevel->getSize(), bufferAlloc->getHostPtr()));
302 de::MovePtr<Allocation> bufferAlloc; in readDepthAttachment() local
348 bufferAlloc = allocator.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequirement::HostVisible); in readDepthAttachment()
349 VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc in readDepthAttachment()
380 de::MovePtr<Allocation> bufferAlloc; readStencilAttachment() local
439 de::MovePtr<Allocation> bufferAlloc; uploadTestTextureInternal() local
542 de::MovePtr<Allocation> bufferAlloc; uploadTestTextureInternalSparse() local
[all...]
H A DvktPipelineExtendedDynamicStateMiscTests.cpp405 const auto& bufferAlloc = counterBuffers.at(drawIdx)->getAllocation(); in sampleShadingWithDynamicSampleCount() local
406 invalidateAlloc(ctx.vkd, ctx.device, bufferAlloc); in sampleShadingWithDynamicSampleCount()
407 deMemcpy(&counterResults.at(drawIdx), bufferAlloc.getHostPtr(), sizeof(counterResults.at(drawIdx))); in sampleShadingWithDynamicSampleCount()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
H A DvktPipelineImageUtil.cpp234 de::MovePtr<Allocation> bufferAlloc;
257 bufferAlloc = allocator.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequirement::HostVisible);
258 VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()));
275 invalidateAlloc(vk, device, *bufferAlloc);
276 tcu::copy(*resultLevel, tcu::ConstPixelBufferAccess(resultLevel->getFormat(), resultLevel->getSize(), bufferAlloc->getHostPtr()));
292 de::MovePtr<Allocation> bufferAlloc; in readDepthAttachment() local
338 bufferAlloc = allocator.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequirement::HostVisible); in readDepthAttachment()
339 VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc in readDepthAttachment()
370 de::MovePtr<Allocation> bufferAlloc; readStencilAttachment() local
429 de::MovePtr<Allocation> bufferAlloc; uploadTestTextureInternal() local
532 de::MovePtr<Allocation> bufferAlloc; uploadTestTextureInternalSparse() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory_model/
H A DvktMemoryModelSharedLayoutCase.cpp383 de::MovePtr<vk::Allocation> bufferAlloc (allocator.allocate(requirements, vk::MemoryRequirement::HostVisible)); in iterate()
384 VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset())); in iterate()
386 deMemset(bufferAlloc->getHostPtr(), 0, bufferSize); in iterate()
387 flushMappedMemoryRange(vk, device, bufferAlloc->getMemory(), bufferAlloc->getOffset(), requirements.size); in iterate()
476 invalidateAlloc(vk, device, *bufferAlloc); in iterate()
478 resCount = *(static_cast<const int *>(bufferAlloc->getHostPtr())); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory_model/
H A DvktMemoryModelSharedLayoutCase.cpp383 de::MovePtr<vk::Allocation> bufferAlloc (allocator.allocate(requirements, vk::MemoryRequirement::HostVisible)); in iterate()
384 VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset())); in iterate()
386 deMemset(bufferAlloc->getHostPtr(), 0, bufferSize); in iterate()
387 flushMappedMemoryRange(vk, device, bufferAlloc->getMemory(), bufferAlloc->getOffset(), requirements.size); in iterate()
476 invalidateAlloc(vk, device, *bufferAlloc); in iterate()
478 resCount = *(static_cast<const int *>(bufferAlloc->getHostPtr())); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
H A DvktSpvAsmComputeShaderCase.cpp510 AllocationMp bufferAlloc; in iterate() local
511 BufferHandleUp* buffer = new BufferHandleUp(createBufferAndBindMemory(m_context, vkdi, device, descType, allocator, numBytes, &bufferAlloc, m_shaderSpec.usesPhysStorageBuffer, m_shaderSpec.coherentMemory)); in iterate()
513 setMemory(vkdi, device, &*bufferAlloc, numBytes, &inputBytes.front(), m_shaderSpec.coherentMemory); in iterate()
515 inputAllocs.push_back(de::SharedPtr<Allocation>(bufferAlloc.release())); in iterate()
527 AllocationMp bufferAlloc; in iterate() local
528 BufferHandleUp* buffer = new BufferHandleUp(createBufferAndBindMemory(m_context, vkdi, device, descType, allocator, numBytes, &bufferAlloc, m_shaderSpec.usesPhysStorageBuffer)); in iterate()
533 setMemory(vkdi, device, &*bufferAlloc, numBytes, &inputBytes.front()); in iterate()
536 inputAllocs.push_back(de::SharedPtr<Allocation>(bufferAlloc.release())); in iterate()
766 AllocationMp bufferAlloc; in iterate() local
768 allocator, numBytes, &bufferAlloc, fals in iterate()
[all...]
H A DvktSpvAsmCrossStageInterfaceTests.cpp534 MovePtr<Allocation> bufferAlloc; in checkImage() local
554 bufferAlloc = m_context.getDefaultAllocator().allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), MemoryRequirement::HostVisible); in checkImage()
555 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset())); in checkImage()
557 deMemset(bufferAlloc->getHostPtr(), 0, static_cast<size_t>(pixelDataSize)); in checkImage()
558 flushAlloc(vk, vkDevice, *bufferAlloc); in checkImage()
568 invalidateAlloc(vk, vkDevice, *bufferAlloc); in checkImage()
569 tcu::copy(dst, tcu::ConstPixelBufferAccess(dst.getFormat(), dst.getSize(), bufferAlloc->getHostPtr())); in checkImage()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/
H A DvktSpvAsmComputeShaderCase.cpp510 AllocationMp bufferAlloc; in iterate() local
511 BufferHandleUp* buffer = new BufferHandleUp(createBufferAndBindMemory(m_context, vkdi, device, descType, allocator, numBytes, &bufferAlloc, m_shaderSpec.usesPhysStorageBuffer, m_shaderSpec.coherentMemory)); in iterate()
513 setMemory(vkdi, device, &*bufferAlloc, numBytes, &inputBytes.front(), m_shaderSpec.coherentMemory); in iterate()
515 inputAllocs.push_back(de::SharedPtr<Allocation>(bufferAlloc.release())); in iterate()
527 AllocationMp bufferAlloc; in iterate() local
528 BufferHandleUp* buffer = new BufferHandleUp(createBufferAndBindMemory(m_context, vkdi, device, descType, allocator, numBytes, &bufferAlloc, m_shaderSpec.usesPhysStorageBuffer)); in iterate()
533 setMemory(vkdi, device, &*bufferAlloc, numBytes, &inputBytes.front()); in iterate()
536 inputAllocs.push_back(de::SharedPtr<Allocation>(bufferAlloc.release())); in iterate()
766 AllocationMp bufferAlloc; in iterate() local
768 allocator, numBytes, &bufferAlloc, fals in iterate()
[all...]
H A DvktSpvAsmCrossStageInterfaceTests.cpp534 MovePtr<Allocation> bufferAlloc; in checkImage() local
554 bufferAlloc = m_context.getDefaultAllocator().allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), MemoryRequirement::HostVisible); in checkImage()
555 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset())); in checkImage()
557 deMemset(bufferAlloc->getHostPtr(), 0, static_cast<size_t>(pixelDataSize)); in checkImage()
558 flushAlloc(vk, vkDevice, *bufferAlloc); in checkImage()
568 invalidateAlloc(vk, vkDevice, *bufferAlloc); in checkImage()
569 tcu::copy(dst, tcu::ConstPixelBufferAccess(dst.getFormat(), dst.getSize(), bufferAlloc->getHostPtr())); in checkImage()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/
H A DvktRayQueryDirectionTests.cpp374 auto& bufferAlloc = buffer.getAllocation(); in iterate() local
377 deMemset(bufferAlloc.getHostPtr(), 0, sizeof(float)); in iterate()
378 flushAlloc(vkd, device, bufferAlloc); in iterate()
467 invalidateAlloc(vkd, device, bufferAlloc); in iterate()
468 deMemcpy(&bufferValue, bufferAlloc.getHostPtr(), sizeof(bufferValue)); in iterate()
H A DvktRayQueryProceduralGeometryTests.cpp228 auto& bufferAlloc = buffer->getAllocation(); in clearBuffer() local
229 void* bufferPtr = bufferAlloc.getHostPtr(); in clearBuffer()
232 vk::flushAlloc(vkd, device, bufferAlloc); in clearBuffer()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_query/
H A DvktRayQueryDirectionTests.cpp374 auto& bufferAlloc = buffer.getAllocation(); in iterate() local
377 deMemset(bufferAlloc.getHostPtr(), 0, sizeof(float)); in iterate()
378 flushAlloc(vkd, device, bufferAlloc); in iterate()
467 invalidateAlloc(vkd, device, bufferAlloc); in iterate()
468 deMemcpy(&bufferValue, bufferAlloc.getHostPtr(), sizeof(bufferValue)); in iterate()
H A DvktRayQueryProceduralGeometryTests.cpp228 auto& bufferAlloc = buffer->getAllocation(); in clearBuffer() local
229 void* bufferPtr = bufferAlloc.getHostPtr(); in clearBuffer()
232 vk::flushAlloc(vkd, device, bufferAlloc); in clearBuffer()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
H A DvktDrawSampleAttributeTests.cpp171 auto& bufferAlloc = buffer.getAllocation(); in iterate() local
172 void* bufferData = bufferAlloc.getHostPtr(); in iterate()
175 flushAlloc(ctx.vkd, ctx.device, bufferAlloc); in iterate()
451 invalidateAlloc(ctx.vkd, ctx.device, bufferAlloc); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/geometry/
H A DvktGeometryBasicGeometryShaderTests.cpp105 de::MovePtr<Allocation> bufferAlloc; in uploadImage() local
124 bufferAlloc = memAlloc.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequirement::HostVisible); in uploadImage()
125 VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset())); in uploadImage()
151 const tcu::PixelBufferAccess destAccess (access.getFormat(), access.getSize(), bufferAlloc->getHostPtr()); in uploadImage()
153 flushAlloc(vk, device, *bufferAlloc); in uploadImage()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/geometry/
H A DvktGeometryBasicGeometryShaderTests.cpp105 de::MovePtr<Allocation> bufferAlloc; in uploadImage() local
124 bufferAlloc = memAlloc.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequirement::HostVisible); in uploadImage()
125 VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset())); in uploadImage()
151 const tcu::PixelBufferAccess destAccess (access.getFormat(), access.getSize(), bufferAlloc->getHostPtr()); in uploadImage()
153 flushAlloc(vk, device, *bufferAlloc); in uploadImage()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/
H A DvktApiFillBufferTests.cpp202 const Allocation& bufferAlloc);
294 const Allocation& bufferAlloc) in uploadBuffer()
301 deMemcpy(bufferAlloc.getHostPtr(), bufferAccess.getDataPtr(), bufferSize); in uploadBuffer()
302 flushAlloc(vk, vkDevice, bufferAlloc); in uploadBuffer()
291 uploadBuffer(tcu::ConstPixelBufferAccess bufferAccess, const Allocation& bufferAlloc) uploadBuffer() argument
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/robustness/
H A DvktRobustness1VertexAccessTests.cpp690 auto bufferAlloc = allocator.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequirement::HostVisible);
691 VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()));
692 deMemcpy(bufferAlloc->getHostPtr(), data.data, data.size);
693 flushMappedMemoryRange(vk, device, bufferAlloc->getMemory(), bufferAlloc->getOffset(), VK_WHOLE_SIZE);
695 vertexBufferAllocs.emplace_back(bufferAlloc);
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/robustness/
H A DvktRobustness1VertexAccessTests.cpp670 auto bufferAlloc = allocator.allocate(getBufferMemoryRequirements(vk, device, *buffer), MemoryRequirement::HostVisible);
671 VK_CHECK(vk.bindBufferMemory(device, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()));
672 deMemcpy(bufferAlloc->getHostPtr(), data.data, data.size);
673 flushMappedMemoryRange(vk, device, bufferAlloc->getMemory(), bufferAlloc->getOffset(), VK_WHOLE_SIZE);
675 vertexBufferAllocs.emplace_back(bufferAlloc);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/
H A DvktRayTracingDirectionTests.cpp455 auto& bufferAlloc = buffer.getAllocation(); in iterate() local
458 deMemset(bufferAlloc.getHostPtr(), 0, sizeof(float)); in iterate()
459 flushAlloc(vkd, device, bufferAlloc); in iterate()
601 invalidateAlloc(vkd, device, bufferAlloc); in iterate()
602 deMemcpy(&bufferValue, bufferAlloc.getHostPtr(), sizeof(bufferValue)); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/
H A DvktRayTracingDirectionTests.cpp455 auto& bufferAlloc = buffer.getAllocation(); in iterate() local
458 deMemset(bufferAlloc.getHostPtr(), 0, sizeof(float)); in iterate()
459 flushAlloc(vkd, device, bufferAlloc); in iterate()
601 invalidateAlloc(vkd, device, bufferAlloc); in iterate()
602 deMemcpy(&bufferValue, bufferAlloc.getHostPtr(), sizeof(bufferValue)); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/multiview/
H A DvktMultiViewRenderTests.cpp1230 MovePtr<Allocation> bufferAlloc; in readImage() local
1248 bufferAlloc = m_allocator->allocate(getBufferMemoryRequirements(*m_device, *m_logicalDevice, *buffer), MemoryRequirement::HostVisible); in readImage()
1249 VK_CHECK(m_device->bindBufferMemory(*m_logicalDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset())); in readImage()
1251 deMemset(bufferAlloc->getHostPtr(), 0, static_cast<size_t>(pixelDataSize)); in readImage()
1252 flushAlloc(*m_device, *m_logicalDevice, *bufferAlloc); in readImage()
1308 invalidateAlloc(*m_device, *m_logicalDevice, *bufferAlloc); in readImage()
1309 tcu::copy(dst, tcu::ConstPixelBufferAccess(dst.getFormat(), dst.getSize(), bufferAlloc->getHostPtr())); in readImage()
1833 MovePtr<Allocation> bufferAlloc; in setImageData() local
1850 bufferAlloc in setImageData()
3569 MovePtr<Allocation> bufferAlloc; readImage() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRender.cpp996 de::MovePtr<Allocation> bufferAlloc;
1030 bufferAlloc = m_memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), MemoryRequirement::HostVisible);
1031 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()));
1037 deUint8* destPtr = (deUint8*)bufferAlloc->getHostPtr();
1077 flushAlloc(vk, vkDevice, *bufferAlloc);
1283 de::MovePtr<Allocation> bufferAlloc;
1322 bufferAlloc = m_memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), MemoryRequirement::HostVisible);
1324 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
H A DvktShaderRender.cpp998 de::MovePtr<Allocation> bufferAlloc;
1032 bufferAlloc = m_memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), MemoryRequirement::HostVisible);
1033 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc->getOffset()));
1039 deUint8* destPtr = (deUint8*)bufferAlloc->getHostPtr();
1079 flushAlloc(vk, vkDevice, *bufferAlloc);
1285 de::MovePtr<Allocation> bufferAlloc;
1324 bufferAlloc = m_memAlloc.allocate(getBufferMemoryRequirements(vk, vkDevice, *buffer), MemoryRequirement::HostVisible);
1326 VK_CHECK(vk.bindBufferMemory(vkDevice, *buffer, bufferAlloc->getMemory(), bufferAlloc
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
H A DvktApiFillBufferTests.cpp377 const Allocation& bufferAlloc);
482 const Allocation& bufferAlloc) in uploadBuffer()
488 deMemcpy(bufferAlloc.getHostPtr(), bufferAccess.getDataPtr(), bufferSize); in uploadBuffer()
489 flushAlloc(vk, m_device, bufferAlloc); in uploadBuffer()
479 uploadBuffer(tcu::ConstPixelBufferAccess bufferAccess, const Allocation& bufferAlloc) uploadBuffer() argument

Completed in 57 milliseconds

1234