Home
last modified time | relevance | path

Searched refs:allocations (Results 1 - 25 of 55) sorted by relevance

123

/third_party/skia/third_party/externals/tint/src/writer/msl/
H A Dgenerator_impl_test.cc172 auto allocations = gen.DynamicWorkgroupAllocations(); in TEST_F() local
173 ASSERT_TRUE(allocations.count("comp_main")); in TEST_F()
174 ASSERT_EQ(allocations["comp_main"].size(), 1u); in TEST_F()
175 EXPECT_EQ(allocations["comp_main"][0], 2u * 2u * sizeof(float)); in TEST_F()
214 auto allocations = gen.DynamicWorkgroupAllocations(); in TEST_F() local
215 ASSERT_TRUE(allocations.count("comp_main")); in TEST_F()
216 ASSERT_EQ(allocations["comp_main"].size(), 1u); in TEST_F()
217 EXPECT_EQ(allocations["comp_main"][0], 4u * 2u * 2u * sizeof(float)); in TEST_F()
267 auto allocations = gen.DynamicWorkgroupAllocations(); in TEST_F() local
268 ASSERT_TRUE(allocations in TEST_F()
396 auto allocations = gen.DynamicWorkgroupAllocations(); TEST_F() local
[all...]
/third_party/mesa3d/src/util/tests/vma/
H A Dvma_random_test.cpp145 allocations.push_back(a); in alloc()
152 if (allocations.size() == 0) in dealloc()
155 std::uniform_int_distribution<> dist(0, allocations.size() - 1); in dealloc()
158 std::swap(allocations.at(to_dealloc), allocations.back()); in dealloc()
159 allocation a = allocations.back(); in dealloc()
160 allocations.pop_back(); in dealloc()
216 while (allocations.size() != 0) in empty()
226 std::vector<allocation> allocations; member
/third_party/selinux/libselinux/utils/
H A Davcstat.c27 #define HEADERS "lookups hits misses allocations reclaims frees"
33 unsigned long long allocations; member
189 &tmp.allocations, in main()
198 tot.allocations += tmp.allocations; in main()
210 tot.allocations, tot.reclaims, tot.frees); in main()
215 rel.allocations = tot.allocations - last.allocations; in main()
220 rel.allocations, re in main()
[all...]
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
H A DvkAllocationCallbackUtil.cpp364 std::vector<AllocationSlot> allocations; in validateAllocationCallbacks() local
404 ptrToSlotIndex[record.data.allocation.returnedPtr] = allocations.size(); in validateAllocationCallbacks()
405 allocations.push_back(AllocationSlot(record, true)); in validateAllocationCallbacks()
410 if (!allocations[slotNdx].isLive) in validateAllocationCallbacks()
412 allocations[slotNdx].isLive = true; in validateAllocationCallbacks()
413 allocations[slotNdx].record = record; in validateAllocationCallbacks()
417 // we should not have multiple live allocations with the same pointer in validateAllocationCallbacks()
431 AllocationSlot& origSlot = allocations[origSlotNdx]; in validateAllocationCallbacks()
449 allocations[origSlotNdx].record = record; in validateAllocationCallbacks()
455 allocations[origSlotNd in validateAllocationCallbacks()
[all...]
H A DvkMemUtil.cpp424 vector<AllocationSp>& allocations, in bindImagePlanesMemory()
438 allocations.push_back(AllocationSp(allocator.allocate(reqs, requirement).release())); in bindImagePlanesMemory()
453 allocations.back()->getMemory(), in bindImagePlanesMemory()
454 allocations.back()->getOffset(), in bindImagePlanesMemory()
420 bindImagePlanesMemory(const DeviceInterface& vkd, const VkDevice device, const VkImage image, const deUint32 numPlanes, vector<AllocationSp>& allocations, vk::Allocator& allocator, const vk::MemoryRequirement requirement) bindImagePlanesMemory() argument
/third_party/ltp/tools/sparse/sparse-src/
H A Dallocate.c56 desc->allocations = 0; in drop_all_allocations()
98 desc->allocations++; in allocate()
125 fprintf(stderr, "%s: %d allocations, %lu bytes (%lu total bytes, " in show_allocations()
127 x->name, x->allocations, x->useful_bytes, x->total_bytes, in show_allocations()
129 (double) x->useful_bytes / x->allocations); in show_allocations()
135 s->allocations = x->allocations; in get_allocator_stats()
H A Dstats.c20 x.name, x.allocations, x.useful_bytes, x.total_bytes, in show_stats()
22 (double) x.useful_bytes / (x.allocations ? : 1)); in show_stats()
24 tot->allocations += x.allocations; in show_stats()
H A Dallocate.h19 unsigned int allocations; member
25 unsigned int allocations; member
/third_party/node/deps/v8/tools/
H A Dpredictable_wrapper.py66 allocations = allocation_str(output.stdout)
67 if not allocations:
72 if previous_allocations and previous_allocations != allocations:
78 previous_allocations = allocations
/third_party/skia/third_party/externals/spirv-cross/tests-other/
H A Dsmall_vector.cpp25 static int allocations = 0; variable
34 RAIIInt(int v_) : v(v_) { allocations++; } in RAIIInt()
36 RAIIInt() { allocations++; } in RAIIInt()
37 RAIIInt(const RAIIInt &other) { v = other.v; allocations++; } in RAIIInt()
38 RAIIInt(RAIIInt &&other) SPIRV_CROSS_NOEXCEPT { v = other.v; allocations++; }
224 SPVC_ASSERT(allocations > 0 && deallocations > 0 && deallocations == allocations); in main()
/third_party/skia/third_party/externals/dawn/src/tests/white_box/
H A DD3D12DescriptorHeapTests.cpp177 // because the sampler heap allocations are de-duplicated. in TEST_P()
924 std::vector<CPUDescriptorHeapAllocation> allocations; in TEST_P() local
929 allocations.push_back(allocation); in TEST_P()
936 for (CPUDescriptorHeapAllocation& allocation : allocations) { in TEST_P()
942 // Verify that re-allocating a number of allocations < pool size, all heaps are reused.
951 std::list<CPUDescriptorHeapAllocation> allocations; in TEST_P() local
957 allocations.push_back(allocation); in TEST_P()
962 for (CPUDescriptorHeapAllocation& allocation : allocations) { in TEST_P()
967 allocations.clear(); in TEST_P()
973 allocations in TEST_P()
994 std::list<CPUDescriptorHeapAllocation> allocations; TEST_P() local
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DBuddyMemoryAllocatorTests.cpp99 // After two 128 byte resource allocations: in TEST()
119 // Allocate two 128 byte allocations. in TEST()
135 // Deallocate both allocations in TEST()
143 // Verify multiple sub-allocations can re-use heaps.
145 // After two 64 byte allocations with 128 byte heaps. in TEST()
159 // Allocate two 64 byte sub-allocations. in TEST()
183 // Deallocate all allocations in reverse order. in TEST()
197 // After three 64 byte allocations and two 128 byte allocations. in TEST()
213 // Allocate two 64-byte allocations in TEST()
393 std::vector<ResourceMemoryAllocation> allocations = {}; TEST() local
434 std::vector<ResourceMemoryAllocation> allocations = {}; TEST() local
[all...]
/third_party/node/deps/v8/src/profiler/
H A Dsampling-heap-profiler.cc38 // recorded all allocations, we must approximate the shape of the underlying
39 // space of allocations based on the samples we have collected. Given that
42 // approximate the true number of allocations with size *size* given that
143 // in the top frames of the stack). The allocations made in this in AddStack()
180 // difference for allocations. in AddStack()
220 std::vector<v8::AllocationProfile::Allocation> allocations; in TranslateAllocationNode() local
221 allocations.reserve(node->allocations_.size()); in TranslateAllocationNode()
236 allocations.push_back(ScaleSample(alloc.first, alloc.second)); in TranslateAllocationNode()
243 node->id_, std::vector<v8::AllocationProfile::Node*>(), allocations}); in TranslateAllocationNode()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/binding_model/
H A DvktBindingBufferDeviceAddressTests.cpp740 vector<AllocationSp> allocations(numBuffers); in iterate()
791 allocations[i] = AllocationSp(allocateExtended(vki, vk, physDevice, device, memReq, MemoryRequirement::HostVisible, &allocFlagsInfo)); in iterate()
795 deviceMemoryOpaqueCaptureAddressInfo.memory = allocations[i]->getMemory(); in iterate()
799 VK_CHECK(vk.bindBufferMemory(device, **buffers[i], allocations[i]->getMemory(), memoryOffset)); in iterate()
811 allocations.clear(); in iterate()
812 allocations.resize(numBuffers); in iterate()
829 allocations[i] = AllocationSp(allocateExtended(vki, vk, physDevice, device, getBufferMemoryRequirements(vk, device, **buffers[i]), MemoryRequirement::HostVisible, &allocFlagsInfo)); in iterate()
830 VK_CHECK(vk.bindBufferMemory(device, **buffers[i], allocations[i]->getMemory(), 0)); in iterate()
846 cpuAddrs[i] = (deUint8 *)allocations[multiBuffer ? i : 0]->getHostPtr() + memoryOffset; in iterate()
858 flushAlloc(vk, device, *allocations[ in iterate()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/binding_model/
H A DvktBindingBufferDeviceAddressTests.cpp740 vector<AllocationSp> allocations(numBuffers); in iterate()
791 allocations[i] = AllocationSp(allocateExtended(vki, vk, physDevice, device, memReq, MemoryRequirement::HostVisible, &allocFlagsInfo)); in iterate()
795 deviceMemoryOpaqueCaptureAddressInfo.memory = allocations[i]->getMemory(); in iterate()
799 VK_CHECK(vk.bindBufferMemory(device, **buffers[i], allocations[i]->getMemory(), memoryOffset)); in iterate()
811 allocations.clear(); in iterate()
812 allocations.resize(numBuffers); in iterate()
829 allocations[i] = AllocationSp(allocateExtended(vki, vk, physDevice, device, getBufferMemoryRequirements(vk, device, **buffers[i]), MemoryRequirement::HostVisible, &allocFlagsInfo)); in iterate()
830 VK_CHECK(vk.bindBufferMemory(device, **buffers[i], allocations[i]->getMemory(), 0)); in iterate()
846 cpuAddrs[i] = (deUint8 *)allocations[multiBuffer ? i : 0]->getHostPtr() + memoryOffset; in iterate()
858 flushAlloc(vk, device, *allocations[ in iterate()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/
H A DvktYCbCrUtil.cpp134 vector<AllocationSp>* allocations) in allocateStagingBuffers()
156 allocations->push_back(AllocationSp(allocation.release())); in allocateStagingBuffers()
165 vector<AllocationSp>* allocations) in allocateAndWriteStagingBuffers()
167 allocateStagingBuffers(vkd, device, allocator, imageData, buffers, allocations); in allocateAndWriteStagingBuffers()
171 deMemcpy((*allocations)[planeNdx]->getHostPtr(), imageData.getPlanePtr(planeNdx), imageData.getPlaneSize(planeNdx)); in allocateAndWriteStagingBuffers()
172 flushMappedMemoryRange(vkd, device, (*allocations)[planeNdx]->getMemory(), 0u, VK_WHOLE_SIZE); in allocateAndWriteStagingBuffers()
179 const vector<AllocationSp>& allocations) in readStagingBuffers()
183 invalidateMappedMemoryRange(vkd, device, allocations[planeNdx]->getMemory(), 0u, VK_WHOLE_SIZE); in readStagingBuffers()
184 deMemcpy(imageData->getPlanePtr(planeNdx), allocations[planeNdx]->getHostPtr(), imageData->getPlaneSize(planeNdx)); in readStagingBuffers()
356 vector<AllocationSp> allocations; in allocateAndBindImageMemory() local
129 allocateStagingBuffers(const DeviceInterface& vkd, VkDevice device, Allocator& allocator, const MultiPlaneImageData& imageData, vector<VkBufferSp>* buffers, vector<AllocationSp>* allocations) allocateStagingBuffers() argument
160 allocateAndWriteStagingBuffers(const DeviceInterface& vkd, VkDevice device, Allocator& allocator, const MultiPlaneImageData& imageData, vector<VkBufferSp>* buffers, vector<AllocationSp>* allocations) allocateAndWriteStagingBuffers() argument
176 readStagingBuffers(MultiPlaneImageData* imageData, const DeviceInterface& vkd, VkDevice device, const vector<AllocationSp>& allocations) readStagingBuffers() argument
478 fillImageMemory(const vk::DeviceInterface& vkd, vk::VkDevice device, deUint32 queueFamilyNdx, vk::VkImage image, const std::vector<de::SharedPtr<vk::Allocation> >& allocations, const MultiPlaneImageData& imageData, vk::VkAccessFlags nextAccess, vk::VkImageLayout finalLayout, deUint32 arrayLayer) fillImageMemory() argument
666 readImageMemory(const vk::DeviceInterface& vkd, vk::VkDevice device, deUint32 queueFamilyNdx, vk::VkImage image, const std::vector<de::SharedPtr<vk::Allocation> >& allocations, MultiPlaneImageData* imageData, vk::VkAccessFlags prevAccess, vk::VkImageLayout initialLayout) readImageMemory() argument
[all...]
H A DvktYCbCrViewTests.cpp509 const vector<AllocationSp> allocations (allocateAndBindImageMemory(vkd, device, context.getDefaultAllocator(), *image, format, createFlags)); in testPlaneView()
527 allocations[params.planeNdx]->getMemory(), in testPlaneView()
528 allocations[params.planeNdx]->getOffset(), in testPlaneView()
535 VK_CHECK(vkd.bindImageMemory(device, *imageAlias, allocations[params.planeNdx]->getMemory(), allocations[params.planeNdx]->getOffset())); in testPlaneView()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/
H A DvktYCbCrUtil.cpp134 vector<AllocationSp>* allocations) in allocateStagingBuffers()
156 allocations->push_back(AllocationSp(allocation.release())); in allocateStagingBuffers()
165 vector<AllocationSp>* allocations) in allocateAndWriteStagingBuffers()
167 allocateStagingBuffers(vkd, device, allocator, imageData, buffers, allocations); in allocateAndWriteStagingBuffers()
171 deMemcpy((*allocations)[planeNdx]->getHostPtr(), imageData.getPlanePtr(planeNdx), imageData.getPlaneSize(planeNdx)); in allocateAndWriteStagingBuffers()
172 flushMappedMemoryRange(vkd, device, (*allocations)[planeNdx]->getMemory(), 0u, VK_WHOLE_SIZE); in allocateAndWriteStagingBuffers()
179 const vector<AllocationSp>& allocations) in readStagingBuffers()
183 invalidateMappedMemoryRange(vkd, device, allocations[planeNdx]->getMemory(), 0u, VK_WHOLE_SIZE); in readStagingBuffers()
184 deMemcpy(imageData->getPlanePtr(planeNdx), allocations[planeNdx]->getHostPtr(), imageData->getPlaneSize(planeNdx)); in readStagingBuffers()
356 vector<AllocationSp> allocations; in allocateAndBindImageMemory() local
129 allocateStagingBuffers(const DeviceInterface& vkd, VkDevice device, Allocator& allocator, const MultiPlaneImageData& imageData, vector<VkBufferSp>* buffers, vector<AllocationSp>* allocations) allocateStagingBuffers() argument
160 allocateAndWriteStagingBuffers(const DeviceInterface& vkd, VkDevice device, Allocator& allocator, const MultiPlaneImageData& imageData, vector<VkBufferSp>* buffers, vector<AllocationSp>* allocations) allocateAndWriteStagingBuffers() argument
176 readStagingBuffers(MultiPlaneImageData* imageData, const DeviceInterface& vkd, VkDevice device, const vector<AllocationSp>& allocations) readStagingBuffers() argument
478 fillImageMemory(const vk::DeviceInterface& vkd, vk::VkDevice device, deUint32 queueFamilyNdx, vk::VkImage image, const std::vector<de::SharedPtr<vk::Allocation> >& allocations, const MultiPlaneImageData& imageData, vk::VkAccessFlags nextAccess, vk::VkImageLayout finalLayout, deUint32 arrayLayer) fillImageMemory() argument
665 readImageMemory(const vk::DeviceInterface& vkd, vk::VkDevice device, deUint32 queueFamilyNdx, vk::VkImage image, const std::vector<de::SharedPtr<vk::Allocation> >& allocations, MultiPlaneImageData* imageData, vk::VkAccessFlags prevAccess, vk::VkImageLayout initialLayout) readImageMemory() argument
[all...]
H A DvktYCbCrViewTests.cpp461 const vector<AllocationSp> allocations (allocateAndBindImageMemory(vkd, device, context.getDefaultAllocator(), *image, format, createFlags)); in testPlaneView()
479 allocations[params.planeNdx]->getMemory(), in testPlaneView()
480 allocations[params.planeNdx]->getOffset(), in testPlaneView()
487 VK_CHECK(vkd.bindImageMemory(device, *imageAlias, allocations[params.planeNdx]->getMemory(), allocations[params.planeNdx]->getOffset())); in testPlaneView()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DResidencyManagerD3D12.cpp151 // accounting for Dawn's GPU allocations, or 2) a component external to Dawn is using all of in RemoveSingleEntryFromLRU()
299 ID3D12Pageable** allocations) { in MakeAllocationsResident()
310 mDevice->GetD3D12Device()->MakeResident(numberOfObjectsToMakeResident, allocations); in MakeAllocationsResident()
331 mDevice->GetD3D12Device()->MakeResident(numberOfObjectsToMakeResident, allocations); in MakeAllocationsResident()
296 MakeAllocationsResident(MemorySegmentInfo* segment, uint64_t sizeToMakeResident, uint64_t numberOfObjectsToMakeResident, ID3D12Pageable** allocations) MakeAllocationsResident() argument
H A DResidencyManagerD3D12.h70 ID3D12Pageable** allocations);
/third_party/vulkan-loader/tests/
H A Dloader_alloc_callback_tests.cpp34 size_t fail_after_allocations = 0; // fail after this number of allocations in total
54 std::unordered_map<void*, AllocationDetails> allocations; member in MemoryTracker
72 allocations.insert(std::make_pair(aligned_alloc, std::move(detail))); in allocate()
79 auto elem = allocations.find(pOriginal); in reallocate()
80 if (elem == allocations.end()) return nullptr; in reallocate()
88 allocations.erase(elem); in reallocate()
99 allocations.erase(elem); in reallocate()
105 auto elem = allocations.find(pMemory); in free()
106 if (elem == allocations.end()) return; in free()
107 allocations in free()
[all...]
/third_party/skia/third_party/externals/spirv-cross/
H A Dspirv_cross_c.cpp115 SmallVector<unique_ptr<ScratchMemoryAllocation>> allocations; member
136 allocations.emplace_back(std::move(alloc)); in allocate_name()
225 context->allocations.clear(); in spvc_context_release_allocations()
256 context->allocations.push_back(std::move(pir)); in spvc_context_parse_spirv()
342 context->allocations.push_back(std::move(comp)); in spvc_context_create_compiler()
391 compiler->context->allocations.push_back(std::move(opt)); in spvc_compiler_create_compiler_options()
1670 compiler->context->allocations.push_back(std::move(ptr)); in spvc_compiler_get_active_interface_variables()
1707 compiler->context->allocations.push_back(std::move(res)); in spvc_compiler_create_shader_resources_for_active_variables()
1734 compiler->context->allocations.push_back(std::move(res)); in spvc_compiler_create_shader_resources()
1958 compiler->context->allocations in spvc_compiler_get_entry_points()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/
H A Dcontainers.h83 // allocations. Once the vector exceeds BASE_CAPACITY elements, vector will
357 // list keeps hold of allocations (it only releases allocations on destruction),
358 // to avoid repeated heap allocations and frees when frequently inserting and
414 AllocationChain* allocations = nullptr;
458 auto curr = allocations;
536 allocChain->next = allocations;
537 allocations = allocChain;
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/video/
H A DvktVideoTestUtils.cpp441 vector<AllocationPtr> allocations (videoSessionMemoryRequirements.size()); in getAndBindVideoSessionMemory()
444 for (size_t ndx = 0; ndx < allocations.size(); ++ndx) in getAndBindVideoSessionMemory()
460 allocations[ndx] = alloc; in getAndBindVideoSessionMemory()
467 return allocations; in getAndBindVideoSessionMemory()

Completed in 24 milliseconds

123