/third_party/node/lib/ |
H A D | buffer.js | 177 'issues. Please use the Buffer.alloc(), ' + 264 * factory APIs: Buffer.from(), Buffer.allocUnsafe() or Buffer.alloc() based on 278 return Buffer.alloc(arg); 347 return Buffer.alloc(0); 353 if (offset >= viewLength) return Buffer.alloc(0); 402 * alloc(size[, fill[, encoding]]) 404 Buffer.alloc = function alloc(size, fill, encoding) { function 1246 if (source.length === 0) return Buffer.alloc(0);
|
/third_party/mesa3d/src/panfrost/vulkan/ |
H A D | panvk_device.c | 245 vk_free(&instance->vk.alloc, instance); in panvk_DestroyInstance() 945 device = vk_zalloc2(&physical_device->instance->vk.alloc, pAllocator, in panvk_CreateDevice() 996 vk_free(&device->vk.alloc, device); in panvk_CreateDevice() 1016 vk_alloc(&device->vk.alloc, in panvk_CreateDevice() 1048 vk_free(&device->vk.alloc, device); in panvk_CreateDevice() 1067 vk_free(&device->vk.alloc, device); in panvk_DestroyDevice()
|
H A D | panvk_private.h | 236 VkAllocationCallbacks alloc; 830 const VkAllocationCallbacks *alloc); 835 const VkAllocationCallbacks *alloc); 1136 const VkAllocationCallbacks *alloc);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/ |
H A D | vktMemoryAllocationTests.cpp | 485 VkMemoryAllocateInfo alloc = in iterate() local 493 VkResult res = vkd.allocateMemory(device, &alloc, (const VkAllocationCallbacks*)DE_NULL, &memoryObjects[ndx]); in iterate() 545 const VkMemoryAllocateInfo alloc = in iterate() local 553 VK_CHECK(vkd.allocateMemory(device, &alloc, (const VkAllocationCallbacks*)DE_NULL, &memoryObjects[ndx])); in iterate() 747 const bool canAllocateSys = usedSysMem + m_allocSysMemSize + 1024 < m_memoryLimits.totalSystemMemory; // \note Always leave room for 1 KiB sys mem alloc in iterate() 844 const VkMemoryAllocateInfo alloc = in iterate() 852 VkResult res = vkd.allocateMemory(device, &alloc, (const VkAllocationCallbacks*)DE_NULL, &heap.objects.back().memory); in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/ |
H A D | vktMeshShaderSyncTests.cpp | 718 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 758 ImageWithMemory colorBuffer (vkd, device, alloc, colorBufferCreateInfo, MemoryRequirement::Any); in iterate() 814 imageResource = ImageWithMemoryPtr(new ImageWithMemory(vkd, device, alloc, resourceCreateInfo, MemoryRequirement::Any)); in iterate() 821 bufferResource = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, resourceBufferCreateInfo, MemoryRequirement::HostVisible)); in iterate() 857 hostCoherentBuffer = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, auxiliarBufferCreateInfo, (MemoryRequirement::HostVisible | MemoryRequirement::Coherent))); in iterate() 1142 colorVerificationBuffer = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, auxiliarBufferCreateInfo, (MemoryRequirement::HostVisible | MemoryRequirement::Coherent))); in iterate()
|
H A D | vktMeshShaderSyncTestsEXT.cpp | 846 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 885 ImageWithMemory colorBuffer (vkd, device, alloc, colorBufferCreateInfo, MemoryRequirement::Any); in iterate() 941 imageResource = ImageWithMemoryPtr(new ImageWithMemory(vkd, device, alloc, resourceCreateInfo, MemoryRequirement::Any)); in iterate() 948 bufferResource = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, resourceBufferCreateInfo, MemoryRequirement::HostVisible)); in iterate() 984 hostCoherentBuffer = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, auxiliarBufferCreateInfo, (MemoryRequirement::HostVisible | MemoryRequirement::Coherent))); in iterate() 1365 colorVerificationBuffer = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, auxiliarBufferCreateInfo, (MemoryRequirement::HostVisible | MemoryRequirement::Coherent))); in iterate() 1532 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 1543 BufferWithMemory outputBuffer (vkd, device, alloc, outputBufferInfo, MemoryRequirement::HostVisible); in iterate() 1550 BufferWithMemory verificationBuffer (vkd, device, alloc, verificationBufferInfo, MemoryRequirement::HostVisible); in iterate()
|
H A D | vktMeshShaderMiscTests.cpp | 254 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 283 ImageWithMemory colorImage (vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any); in iterate() 293 BufferWithMemory verificationBuffer (vkd, device, alloc, verificationBufferInfo, MemoryRequirement::HostVisible); in iterate() 2113 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 2146 ImageWithMemory colorImage (vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any); in iterate() 2156 BufferWithMemory verificationBuffer (vkd, device, alloc, verificationBufferInfo, MemoryRequirement::HostVisible); in iterate() 2221 BufferWithMemory pvdData (vkd, device, alloc, pvdInfo, MemoryRequirement::HostVisible); in iterate() 2227 BufferWithMemory ppdData (vkd, device, alloc, ppdInfo, MemoryRequirement::HostVisible); in iterate() 2455 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 2487 ImageWithMemory colorImage (vkd, device, alloc, colorBufferInf in iterate() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/synchronization/ |
H A D | vktSynchronizationNoneStageTests.cpp | 82 void create (Context& context, SimpleAllocator& alloc, VkFormat format, VkExtent3D extent, VkImageUsageFlags usage); 89 void ImageWrapper::create(Context& context, SimpleAllocator& alloc, VkFormat format, VkExtent3D extent, VkImageUsageFlags usage) in create() argument 114 memory = alloc.allocate(getImageMemoryRequirements(vk, device, *handle), MemoryRequirement::Any); in create() 125 void create (Context& context, SimpleAllocator& alloc, VkDeviceSize size, VkBufferUsageFlags usage); 132 void BufferWrapper::create(Context& context, SimpleAllocator& alloc, VkDeviceSize size, VkBufferUsageFlags usage) in create() argument 139 memory = alloc.allocate(getBufferMemoryRequirements(vk, device, *handle), MemoryRequirement::HostVisible); in create()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/ |
H A D | vktTessellationMiscDrawTests.cpp | 158 const Allocation& alloc = vertexBuffer.getAllocation(); in runTest() local 160 deMemcpy(alloc.getHostPtr(), &vertexData[0], static_cast<std::size_t>(vertexDataSizeBytes)); in runTest() 161 flushAlloc(vk, device, alloc); in runTest() 234 const Allocation& alloc = tessLevelsBuffer.getAllocation(); in runTest() local 235 TessLevels* const bufferTessLevels = static_cast<TessLevels*>(alloc.getHostPtr()); in runTest() 238 flushAlloc(vk, device, alloc); in runTest()
|
H A D | vktTessellationUserDefinedIO.cpp | 789 const Allocation& alloc = vertexBuffer.getAllocation(); in iterate() local 791 deMemcpy(alloc.getHostPtr(), &attributes[0], static_cast<std::size_t>(vertexDataSizeBytes)); in iterate() 792 flushAlloc(vk, device, alloc); in iterate() 802 const Allocation& alloc = resultBuffer.getAllocation(); in iterate() local 804 deMemset(alloc.getHostPtr(), 0, static_cast<std::size_t>(resultBufferSizeBytes)); in iterate() 805 flushAlloc(vk, device, alloc); in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory/ |
H A D | vktMemoryAllocationTests.cpp | 485 VkMemoryAllocateInfo alloc = in iterate() local 493 VkResult res = vkd.allocateMemory(device, &alloc, (const VkAllocationCallbacks*)DE_NULL, &memoryObjects[ndx]); in iterate() 541 const VkMemoryAllocateInfo alloc = in iterate() local 549 VK_CHECK(vkd.allocateMemory(device, &alloc, (const VkAllocationCallbacks*)DE_NULL, &memoryObjects[ndx])); in iterate() 743 const bool canAllocateSys = usedSysMem + m_allocSysMemSize + 1024 < m_memoryLimits.totalSystemMemory; // \note Always leave room for 1 KiB sys mem alloc in iterate() 840 const VkMemoryAllocateInfo alloc = in iterate() 848 VkResult res = vkd.allocateMemory(device, &alloc, (const VkAllocationCallbacks*)DE_NULL, &heap.objects.back().memory); in iterate()
|
/third_party/skia/tests/ |
H A D | VkHardwareBufferTest.cpp | 787 GrVkAlloc alloc; in importHardwareBuffer() local 788 alloc.fMemory = fMemory; in importHardwareBuffer() 789 alloc.fOffset = 0; in importHardwareBuffer() 790 alloc.fSize = hwbProps.allocationSize; in importHardwareBuffer() 791 alloc.fFlags = 0; in importHardwareBuffer() 794 outImageInfo->fAlloc = alloc; in importHardwareBuffer()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/ |
H A D | vktMeshShaderSyncTests.cpp | 718 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 758 ImageWithMemory colorBuffer (vkd, device, alloc, colorBufferCreateInfo, MemoryRequirement::Any); in iterate() 814 imageResource = ImageWithMemoryPtr(new ImageWithMemory(vkd, device, alloc, resourceCreateInfo, MemoryRequirement::Any)); in iterate() 821 bufferResource = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, resourceBufferCreateInfo, MemoryRequirement::HostVisible)); in iterate() 857 hostCoherentBuffer = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, auxiliarBufferCreateInfo, (MemoryRequirement::HostVisible | MemoryRequirement::Coherent))); in iterate() 1142 colorVerificationBuffer = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, auxiliarBufferCreateInfo, (MemoryRequirement::HostVisible | MemoryRequirement::Coherent))); in iterate()
|
H A D | vktMeshShaderSyncTestsEXT.cpp | 846 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 885 ImageWithMemory colorBuffer (vkd, device, alloc, colorBufferCreateInfo, MemoryRequirement::Any); in iterate() 941 imageResource = ImageWithMemoryPtr(new ImageWithMemory(vkd, device, alloc, resourceCreateInfo, MemoryRequirement::Any)); in iterate() 948 bufferResource = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, resourceBufferCreateInfo, MemoryRequirement::HostVisible)); in iterate() 984 hostCoherentBuffer = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, auxiliarBufferCreateInfo, (MemoryRequirement::HostVisible | MemoryRequirement::Coherent))); in iterate() 1365 colorVerificationBuffer = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, auxiliarBufferCreateInfo, (MemoryRequirement::HostVisible | MemoryRequirement::Coherent))); in iterate() 1532 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 1543 BufferWithMemory outputBuffer (vkd, device, alloc, outputBufferInfo, MemoryRequirement::HostVisible); in iterate() 1550 BufferWithMemory verificationBuffer (vkd, device, alloc, verificationBufferInfo, MemoryRequirement::HostVisible); in iterate()
|
H A D | vktMeshShaderMiscTests.cpp | 254 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 283 ImageWithMemory colorImage (vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any); in iterate() 293 BufferWithMemory verificationBuffer (vkd, device, alloc, verificationBufferInfo, MemoryRequirement::HostVisible); in iterate() 2113 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 2146 ImageWithMemory colorImage (vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any); in iterate() 2156 BufferWithMemory verificationBuffer (vkd, device, alloc, verificationBufferInfo, MemoryRequirement::HostVisible); in iterate() 2221 BufferWithMemory pvdData (vkd, device, alloc, pvdInfo, MemoryRequirement::HostVisible); in iterate() 2227 BufferWithMemory ppdData (vkd, device, alloc, ppdInfo, MemoryRequirement::HostVisible); in iterate() 2455 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 2487 ImageWithMemory colorImage (vkd, device, alloc, colorBufferInf in iterate() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/synchronization/ |
H A D | vktSynchronizationNoneStageTests.cpp | 82 void create (Context& context, SimpleAllocator& alloc, VkFormat format, VkExtent3D extent, VkImageUsageFlags usage); 89 void ImageWrapper::create(Context& context, SimpleAllocator& alloc, VkFormat format, VkExtent3D extent, VkImageUsageFlags usage) in create() argument 114 memory = alloc.allocate(getImageMemoryRequirements(vk, device, *handle), MemoryRequirement::Any); in create() 125 void create (Context& context, SimpleAllocator& alloc, VkDeviceSize size, VkBufferUsageFlags usage); 132 void BufferWrapper::create(Context& context, SimpleAllocator& alloc, VkDeviceSize size, VkBufferUsageFlags usage) in create() argument 139 memory = alloc.allocate(getBufferMemoryRequirements(vk, device, *handle), MemoryRequirement::HostVisible); in create()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/ |
H A D | vktTessellationUserDefinedIO.cpp | 789 const Allocation& alloc = vertexBuffer.getAllocation(); in iterate() local 791 deMemcpy(alloc.getHostPtr(), &attributes[0], static_cast<std::size_t>(vertexDataSizeBytes)); in iterate() 792 flushAlloc(vk, device, alloc); in iterate() 802 const Allocation& alloc = resultBuffer.getAllocation(); in iterate() local 804 deMemset(alloc.getHostPtr(), 0, static_cast<std::size_t>(resultBufferSizeBytes)); in iterate() 805 flushAlloc(vk, device, alloc); in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shader_object/ |
H A D | vktShaderObjectPipelineInteractionTests.cpp | 126 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 154 de::MovePtr<vk::ImageWithMemory> image = de::MovePtr<vk::ImageWithMemory>(new vk::ImageWithMemory(vk, device, alloc, createInfo, vk::MemoryRequirement::Any)); in iterate() 159 vk, device, alloc, makeBufferCreateInfo(colorOutputBufferSize, vk::VK_BUFFER_USAGE_TRANSFER_DST_BIT), vk::MemoryRequirement::HostVisible)); in iterate() 439 const vk::BufferWithMemory outputBuffer(vk, device, alloc, vk::makeBufferCreateInfo(bufferSizeBytes, vk::VK_BUFFER_USAGE_STORAGE_BUFFER_BIT), vk::MemoryRequirement::HostVisible); in iterate() 464 vk, device, alloc, vk::makeBufferCreateInfo(bufferSize, vk::VK_BUFFER_USAGE_VERTEX_BUFFER_BIT), vk::MemoryRequirement::HostVisible)); in iterate() 824 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 852 de::MovePtr<vk::ImageWithMemory> image = de::MovePtr<vk::ImageWithMemory>(new vk::ImageWithMemory(vk, device, alloc, createInfo, vk::MemoryRequirement::Any)); in iterate() 857 vk, device, alloc, makeBufferCreateInfo(colorOutputBufferSize, vk::VK_BUFFER_USAGE_TRANSFER_DST_BIT), vk::MemoryRequirement::HostVisible)); in iterate() 993 const vk::BufferWithMemory outputBuffer (vk, device, alloc, vk::makeBufferCreateInfo(bufferSizeBytes, vk::VK_BUFFER_USAGE_STORAGE_BUFFER_BIT), vk::MemoryRequirement::HostVisible); in iterate()
|
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_query.c | 786 &device->meta_state.alloc, in radv_device_init_meta_query_state_internal() 801 &device->meta_state.alloc, &device->meta_state.query.p_layout); in radv_device_init_meta_query_state_internal() 933 device->meta_state.query.tfb_query_pipeline, &device->meta_state.alloc); in radv_device_finish_meta_query_state() 938 &device->meta_state.alloc); in radv_device_finish_meta_query_state() 943 &device->meta_state.alloc); in radv_device_finish_meta_query_state() 948 &device->meta_state.alloc); in radv_device_finish_meta_query_state() 952 device->meta_state.query.pg_query_pipeline, &device->meta_state.alloc); in radv_device_finish_meta_query_state() 956 &device->meta_state.alloc); in radv_device_finish_meta_query_state() 961 &device->meta_state.alloc); in radv_device_finish_meta_query_state() 1067 vk_free2(&device->vk.alloc, pAllocato in radv_destroy_query_pool() [all...] |
H A D | radv_meta_resolve.c | 74 &device->meta_state.alloc, &device->meta_state.resolve.p_layout); in create_pipeline() 177 &device->meta_state.alloc, pipeline); in create_pipeline() 195 &state->alloc); in radv_device_finish_meta_resolve_state() 198 &state->alloc); in radv_device_finish_meta_resolve_state()
|
/third_party/alsa-lib/src/mixer/ |
H A D | mixer.c | 417 if (mixer->count == mixer->alloc) { in snd_mixer_elem_add() 419 mixer->alloc += 32; in snd_mixer_elem_add() 420 m = realloc(mixer->pelems, sizeof(*m) * mixer->alloc); in snd_mixer_elem_add() 422 mixer->alloc -= 32; in snd_mixer_elem_add()
|
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_image.c | 589 const VkAllocationCallbacks *alloc, in tu_CreateImage() 597 vk_object_zalloc(&device->vk, alloc, sizeof(*image), VK_OBJECT_TYPE_IMAGE); in tu_CreateImage() 645 vk_object_free(&device->vk, alloc, image); in tu_CreateImage() 653 return tu_import_memory_from_gralloc_handle(_device, dma_buf, alloc, in tu_CreateImage() 587 tu_CreateImage(VkDevice _device, const VkImageCreateInfo *pCreateInfo, const VkAllocationCallbacks *alloc, VkImage *pImage) tu_CreateImage() argument
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
H A D | vktSpvAsmComputeShaderCase.cpp | 719 AllocationMp alloc; in iterate() local 726 BufferHandleUp* buffer = new BufferHandleUp(createBufferAndBindMemory(m_context, vkdi, device, descriptorTypes.back(), allocator, numBytes, &alloc, m_shaderSpec.usesPhysStorageBuffer, m_shaderSpec.coherentMemory)); in iterate() 728 fillMemoryWithValue(vkdi, device, &*alloc, numBytes, 0xff, m_shaderSpec.coherentMemory); in iterate() 731 outputAllocs.push_back(de::SharedPtr<Allocation>(alloc.release())); in iterate()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/internal/ |
H A D | flag.h | 718 std::allocator<T> alloc; in FlagOps() local 719 return std::allocator_traits<std::allocator<T>>::allocate(alloc, 1); in FlagOps() 724 std::allocator<T> alloc; in FlagOps() local 725 std::allocator_traits<std::allocator<T>>::deallocate(alloc, p, 1); in FlagOps()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/ |
H A D | vktSpvAsmComputeShaderCase.cpp | 719 AllocationMp alloc; in iterate() local 726 BufferHandleUp* buffer = new BufferHandleUp(createBufferAndBindMemory(m_context, vkdi, device, descriptorTypes.back(), allocator, numBytes, &alloc, m_shaderSpec.usesPhysStorageBuffer, m_shaderSpec.coherentMemory)); in iterate() 728 fillMemoryWithValue(vkdi, device, &*alloc, numBytes, 0xff, m_shaderSpec.coherentMemory); in iterate() 731 outputAllocs.push_back(de::SharedPtr<Allocation>(alloc.release())); in iterate()
|