Home
last modified time | relevance | path

Searched refs:allocation (Results 1 - 25 of 240) sorted by relevance

12345678910

/third_party/mesa3d/src/gallium/frontends/nine/
H A Dnine_memory_helper.c58 * the overhead of page allocation happens client side, thus outside the d3d mutex. This should give
61 * allocation path.
62 * By far the overhead induced by page allocation/deallocation is the biggest overhead involved in this
68 * that are not locked for access anymore. Indeed it is likely the allocation will be accessed several times
76 * Finally, for ease of use, we do not implement packing of allocation inside page-aligned regions.
77 * One allocation is given one page-aligned region inside a memfd file.
139 /* The allocation is stored inside a memfd */
141 /* The allocation is part of another allocation, which is stored inside a memfd */
143 /* The allocation wa
260 debug_dump_allocation_state(struct nine_allocation *allocation) debug_dump_allocation_state() argument
299 debug_dump_allocation_state(struct nine_allocation *allocation) debug_dump_allocation_state() argument
320 nine_get_memfd_file_backing(struct nine_allocation *allocation) nine_get_memfd_file_backing() argument
332 nine_get_memfd_region_backing(struct nine_allocation *allocation) nine_get_memfd_region_backing() argument
476 struct nine_allocation *allocation, *ptr; nine_flush_pending_releases() local
504 struct nine_allocation *allocation, *ptr; nine_flush_pending_frees() local
814 nine_free_internal(struct nine_allocator *allocator, struct nine_allocation *allocation) nine_free_internal() argument
839 nine_free(struct nine_allocator *allocator, struct nine_allocation *allocation) nine_free() argument
850 nine_free_worker(struct nine_allocator *allocator, struct nine_allocation *allocation) nine_free_worker() argument
861 nine_get_pointer(struct nine_allocator *allocator, struct nine_allocation *allocation) nine_get_pointer() argument
903 nine_pointer_weakrelease(struct nine_allocator *allocator, struct nine_allocation *allocation) nine_pointer_weakrelease() argument
923 nine_pointer_strongrelease(struct nine_allocator *allocator, struct nine_allocation *allocation) nine_pointer_strongrelease() argument
943 nine_pointer_delayedstrongrelease(struct nine_allocator *allocator, struct nine_allocation *allocation, unsigned *counter) nine_pointer_delayedstrongrelease() argument
958 nine_suballocate(struct nine_allocator* allocator, struct nine_allocation *allocation, int offset) nine_suballocate() argument
1076 struct nine_allocation *allocation; nine_allocate() local
1085 nine_free(struct nine_allocator *allocator, struct nine_allocation *allocation) nine_free() argument
1095 nine_free_worker(struct nine_allocator *allocator, struct nine_allocation *allocation) nine_free_worker() argument
1100 nine_get_pointer(struct nine_allocator *allocator, struct nine_allocation *allocation) nine_get_pointer() argument
1108 nine_pointer_weakrelease(struct nine_allocator *allocator, struct nine_allocation *allocation) nine_pointer_weakrelease() argument
1114 nine_pointer_strongrelease(struct nine_allocator *allocator, struct nine_allocation *allocation) nine_pointer_strongrelease() argument
1120 nine_pointer_delayedstrongrelease(struct nine_allocator *allocator, struct nine_allocation *allocation, unsigned *counter) nine_pointer_delayedstrongrelease() argument
1130 nine_suballocate(struct nine_allocator* allocator, struct nine_allocation *allocation, int offset) nine_suballocate() argument
[all...]
H A Dnine_memory_helper.h39 void nine_free(struct nine_allocator *allocator, struct nine_allocation *allocation);
40 void nine_free_worker(struct nine_allocator *allocator, struct nine_allocation *allocation);
42 void *nine_get_pointer(struct nine_allocator *allocator, struct nine_allocation *allocation);
45 void nine_pointer_weakrelease(struct nine_allocator *allocator, struct nine_allocation *allocation);
48 void nine_pointer_strongrelease(struct nine_allocator *allocator, struct nine_allocation *allocation);
51 * Once a counter is used for a given allocation, the same must keep being used */
53 struct nine_allocation *allocation,
59 nine_suballocate(struct nine_allocator* allocator, struct nine_allocation *allocation, int offset);
/third_party/node/deps/v8/src/heap/
H A Dfactory-base-inl.h25 template <AllocationType allocation>
32 return NewHeapNumber<allocation>(value); in NewNumber()
36 template <AllocationType allocation>
40 return NewHeapNumber<allocation>(FastI2D(value)); in NewNumberFromInt()
44 template <AllocationType allocation>
50 return NewHeapNumber<allocation>(FastUI2D(value)); in NewNumberFromUint()
54 template <AllocationType allocation>
61 return NewHeapNumber<allocation>(static_cast<double>(value)); in NewNumberFromSize()
65 template <AllocationType allocation>
72 return NewHeapNumber<allocation>(static_cas in NewNumberFromInt64()
99 NewStructInternal(InstanceType type, AllocationType allocation) NewStructInternal() argument
108 NewStructInternal(ReadOnlyRoots roots, Map map, int size, AllocationType allocation) NewStructInternal() argument
[all...]
H A Dfactory-base.h71 template <AllocationType allocation = AllocationType::kYoung>
73 template <AllocationType allocation = AllocationType::kYoung>
75 template <AllocationType allocation = AllocationType::kYoung>
77 template <AllocationType allocation = AllocationType::kYoung>
79 template <AllocationType allocation = AllocationType::kYoung>
81 template <AllocationType allocation = AllocationType::kYoung>
83 template <AllocationType allocation = AllocationType::kYoung>
85 template <AllocationType allocation = AllocationType::kYoung>
88 template <AllocationType allocation>
92 AllocationType allocation
[all...]
H A Dfactory-base.cc35 template <AllocationType allocation>
39 HeapObject result = AllocateRawWithImmortalMap(HeapNumber::kSize, allocation, in NewHeapNumber()
58 AllocationType allocation) { in NewStruct()
62 return handle(NewStructInternal(roots, map, size, allocation), isolate()); in NewStruct()
77 int flags, AllocationType allocation) { in NewCodeDataContainer()
81 AllocateRawWithImmortalMap(size, allocation, map)); in NewCodeDataContainer()
100 AllocationType allocation) { in NewFixedArray()
108 read_only_roots().undefined_value_handle(), allocation); in NewFixedArray()
113 Handle<Map> map, int length, AllocationType allocation) { in NewFixedArrayWithMap()
118 map, length, read_only_roots().undefined_value_handle(), allocation); in NewFixedArrayWithMap()
57 NewStruct(InstanceType type, AllocationType allocation) NewStruct() argument
76 NewCodeDataContainer( int flags, AllocationType allocation) NewCodeDataContainer() argument
99 NewFixedArray(int length, AllocationType allocation) NewFixedArray() argument
112 NewFixedArrayWithMap( Handle<Map> map, int length, AllocationType allocation) NewFixedArrayWithMap() argument
122 NewFixedArrayWithHoles( int length, AllocationType allocation) NewFixedArrayWithHoles() argument
132 NewFixedArrayWithFiller( Handle<Map> map, int length, Handle<Oddball> filler, AllocationType allocation) NewFixedArrayWithFiller() argument
147 NewFixedArrayWithZeroes( int length, AllocationType allocation) NewFixedArrayWithZeroes() argument
165 NewFixedDoubleArray( int length, AllocationType allocation) NewFixedDoubleArray() argument
183 NewWeakFixedArrayWithMap( Map map, int length, AllocationType allocation) NewWeakFixedArrayWithMap() argument
202 NewWeakFixedArray( int length, AllocationType allocation) NewWeakFixedArray() argument
211 NewByteArray(int length, AllocationType allocation) NewByteArray() argument
309 NewArrayList(int size, AllocationType allocation) NewArrayList() argument
532 NewFeedbackMetadata( int slot_count, int create_closure_slot_count, AllocationType allocation) NewFeedbackMetadata() argument
649 NewRawStringWithMap( int length, Map map, AllocationType allocation) NewRawStringWithMap() argument
672 NewRawOneByteString( int length, AllocationType allocation) NewRawOneByteString() argument
681 NewRawTwoByteString( int length, AllocationType allocation) NewRawTwoByteString() argument
706 NewConsString( Handle<String> left, Handle<String> right, AllocationType allocation) NewConsString() argument
783 NewConsString(Handle<String> left, Handle<String> right, int length, bool one_byte, AllocationType allocation) NewConsString() argument
808 NewBigInt( int length, AllocationType allocation) NewBigInt() argument
863 NewDescriptorArray( int number_of_descriptors, int slack, AllocationType allocation) NewDescriptorArray() argument
935 AllocateRawArray(int size, AllocationType allocation) AllocateRawArray() argument
948 AllocateRawFixedArray(int length, AllocationType allocation) AllocateRawFixedArray() argument
958 AllocateRawWeakArrayList( int capacity, AllocationType allocation) AllocateRawWeakArrayList() argument
968 NewWithImmortalMap(Map map, AllocationType allocation) NewWithImmortalMap() argument
974 AllocateRawWithImmortalMap( int size, AllocationType allocation, Map map, AllocationAlignment alignment) AllocateRawWithImmortalMap() argument
988 AllocateRaw(int size, AllocationType allocation, AllocationAlignment alignment) AllocateRaw() argument
995 NewSwissNameDictionaryWithCapacity( int capacity, AllocationType allocation) NewSwissNameDictionaryWithCapacity() argument
1025 NewSwissNameDictionary( int at_least_space_for, AllocationType allocation) NewSwissNameDictionary() argument
1092 RefineAllocationTypeForInPlaceInternalizableString( AllocationType allocation, Map string_map) RefineAllocationTypeForInPlaceInternalizableString() argument
[all...]
H A Dheap-allocator-inl.h87 AllocationResult allocation; in AllocateRaw() local
90 allocation = heap_->tp_heap_->Allocate(size_in_bytes, type, alignment); in AllocateRaw()
93 allocation = in AllocateRaw()
98 allocation = in AllocateRaw()
102 allocation = in AllocateRaw()
108 allocation = code_space()->AllocateRawUnaligned(size_in_bytes); in AllocateRaw()
112 allocation = space_for_maps()->AllocateRawUnaligned(size_in_bytes); in AllocateRaw()
117 allocation = read_only_space()->AllocateRaw(size_in_bytes, alignment); in AllocateRaw()
120 allocation = shared_map_allocator_->AllocateRaw(size_in_bytes, in AllocateRaw()
124 allocation in AllocateRaw()
213 AllocateRawWith( int size, AllocationType allocation, AllocationOrigin origin, AllocationAlignment alignment) AllocateRawWith() argument
[all...]
H A Dheap-allocator.cc41 int size_in_bytes, AllocationType allocation, AllocationOrigin origin, in AllocateRawLargeInternal()
43 DCHECK_GT(size_in_bytes, heap_->MaxRegularHeapObjectSize(allocation)); in AllocateRawLargeInternal()
44 switch (allocation) { in AllocateRawLargeInternal()
80 int size, AllocationType allocation, AllocationOrigin origin, in AllocateRawWithLightRetrySlowPath()
82 AllocationResult result = AllocateRaw(size, allocation, origin, alignment); in AllocateRawWithLightRetrySlowPath()
89 if (IsSharedAllocationType(allocation)) { in AllocateRawWithLightRetrySlowPath()
92 heap_->CollectGarbage(AllocationTypeToGCSpace(allocation), in AllocateRawWithLightRetrySlowPath()
95 result = AllocateRaw(size, allocation, origin, alignment); in AllocateRawWithLightRetrySlowPath()
104 int size, AllocationType allocation, AllocationOrigin origin, in AllocateRawWithRetryOrFailSlowPath()
107 AllocateRawWithLightRetrySlowPath(size, allocation, origi in AllocateRawWithRetryOrFailSlowPath()
40 AllocateRawLargeInternal( int size_in_bytes, AllocationType allocation, AllocationOrigin origin, AllocationAlignment alignment) AllocateRawLargeInternal() argument
79 AllocateRawWithLightRetrySlowPath( int size, AllocationType allocation, AllocationOrigin origin, AllocationAlignment alignment) AllocateRawWithLightRetrySlowPath() argument
103 AllocateRawWithRetryOrFailSlowPath( int size, AllocationType allocation, AllocationOrigin origin, AllocationAlignment alignment) AllocateRawWithRetryOrFailSlowPath() argument
[all...]
H A Dfactory.h109 // Interface for handle based allocation.
127 int length, AllocationType allocation = AllocationType::kYoung);
129 // In case of an allocation failure (OOM) an empty handle is returned.
135 int length, AllocationType allocation = AllocationType::kYoung);
166 AllocationType allocation = AllocationType::kYoung);
169 AllocationType allocation = AllocationType::kYoung);
172 AllocationType allocation = AllocationType::kYoung);
185 AllocationType allocation);
236 AllocationType allocation = AllocationType::kYoung);
241 AllocationType allocation in NewStringFromStaticChars()
839 NewForTest(Handle<Map> map, AllocationType allocation) NewForTest() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/common/
H A DPoolAlloc_unittest.cpp23 void *allocation = poolAllocator.allocate(numBytes); in TEST() local
25 EXPECT_NE(nullptr, allocation); in TEST()
26 // Write to allocation to check later in TEST()
27 uint32_t *writePtr = static_cast<uint32_t *>(allocation); in TEST()
29 // Test push and creating a new allocation in TEST()
31 allocation = poolAllocator.allocate(numBytes); in TEST()
32 EXPECT_NE(nullptr, allocation); in TEST()
33 // Make an allocation that spans multiple pages in TEST()
34 allocation = poolAllocator.allocate(10 * 1024); in TEST()
37 // Verify first allocation stil in TEST()
68 void *allocation = poolAllocator.allocate(numBytes); TEST_P() local
[all...]
/third_party/node/deps/v8/src/compiler/
H A Dallocation-builder-inl.h9 #include "src/compiler/allocation-builder.h"
18 void AllocationBuilder::Allocate(int size, AllocationType allocation, in Allocate() argument
21 DCHECK_LE(size, isolate()->heap()->MaxRegularHeapObjectSize(allocation)); in Allocate()
24 allocation_ = graph()->NewNode(simplified()->Allocate(type, allocation), in Allocate()
43 AllocationType allocation) { in CanAllocateArray()
49 return size <= isolate()->heap()->MaxRegularHeapObjectSize(allocation); in CanAllocateArray()
52 // Compound allocation of a FixedArray.
54 AllocationType allocation) { in AllocateArray()
55 DCHECK(CanAllocateArray(length, map, allocation)); in AllocateArray()
59 Allocate(size, allocation, Typ in AllocateArray()
42 CanAllocateArray(int length, MapRef map, AllocationType allocation) CanAllocateArray() argument
53 AllocateArray(int length, MapRef map, AllocationType allocation) AllocateArray() argument
64 CanAllocateSloppyArgumentElements( int length, MapRef map, AllocationType allocation) CanAllocateSloppyArgumentElements() argument
70 AllocateSloppyArgumentElements( int length, MapRef map, AllocationType allocation) AllocateSloppyArgumentElements() argument
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DResourceAllocatorManagerD3D12.cpp197 // TODO(crbug.com/dawn/849): Conditionally disable sub-allocation. in AllocateMemory()
200 // size could be much larger then the resource allocation. in AllocateMemory()
201 // Attempt to satisfy the request using sub-allocation (placed resource in a heap). in AllocateMemory()
209 // If sub-allocation fails, fall-back to direct allocation (committed resource). in AllocateMemory()
218 // If direct allocation fails, the system is probably out of memory. in AllocateMemory()
223 for (ResourceHeapAllocation& allocation : in Tick()
225 if (allocation.GetInfo().mMethod == AllocationMethod::kSubAllocated) { in Tick()
226 FreeMemory(allocation); in Tick()
235 void ResourceAllocatorManager::DeallocateMemory(ResourceHeapAllocation& allocation) { in DeallocateMemory() argument
260 FreeMemory(ResourceHeapAllocation& allocation) FreeMemory() argument
315 ResourceMemoryAllocation allocation; CreatePlacedResource() local
[all...]
H A DStagingDescriptorAllocatorD3D12.cpp98 void StagingDescriptorAllocator::Deallocate(CPUDescriptorHeapAllocation* allocation) { in Deallocate() argument
99 ASSERT(allocation->IsValid()); in Deallocate()
101 const uint32_t heapIndex = allocation->GetHeapIndex(); in Deallocate()
117 const D3D12_CPU_DESCRIPTOR_HANDLE baseDescriptor = allocation->OffsetFrom(0, 0); in Deallocate()
124 allocation->Invalidate(); in Deallocate()
137 CPUDescriptorHeapAllocation allocation; in AllocateTransientCPUDescriptors() local
138 DAWN_TRY_ASSIGN(allocation, AllocateCPUDescriptors()); in AllocateTransientCPUDescriptors()
139 mAllocationsToDelete.Enqueue(allocation, mDevice->GetPendingCommandSerial()); in AllocateTransientCPUDescriptors()
140 return allocation; in AllocateTransientCPUDescriptors()
144 for (CPUDescriptorHeapAllocation& allocation in Tick()
[all...]
/third_party/skia/third_party/externals/expat/expat/tests/
H A Dmemcheck.c45 void *allocation; member
64 entry->allocation = malloc(size); in tracking_malloc()
65 if (entry->allocation == NULL) { in tracking_malloc()
81 return entry->allocation; in tracking_malloc()
89 if (entry->allocation == ptr) { in find_allocation()
108 /* This is the relevant allocation. Unlink it */ in tracking_free()
139 /* Find the allocation entry for this memory */ in tracking_realloc()
148 entry->allocation = realloc(ptr, size); in tracking_realloc()
149 if (entry->allocation == NULL) { in tracking_realloc()
165 entry->allocation in tracking_realloc()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
H A Dmemory.cpp127 #error "Page based allocation not implemented for this platform"
185 auto allocation = malloc(allocSize);
187 reinterpret_cast<uintptr_t>(allocation), alignment)); // align
188 memcpy(aligned + size, &allocation, sizeof(void*)); // pointer-to-allocation
219 marl::Allocation allocation;
220 allocation.ptr = ptr;
221 allocation.request = request;
222 return allocation;
225 virtual void free(const marl::Allocation& allocation) overrid
[all...]
/third_party/mesa3d/src/util/tests/vma/
H A Dvma_random_test.cpp53 struct allocation { struct
59 bool operator()(const allocation& lhs, const allocation& rhs) const in operator ()()
66 constexpr uint64_t allocation_end_page(const allocation& a) { in allocation_end_page()
76 : heap_holes{allocation{MEM_START_PAGE, MEM_PAGES}}, rand{seed} in random_test()
116 * allocation. in alloc()
127 allocation a{addr_page, size_pages}; in alloc()
130 allocation hole = *i; in alloc()
137 heap_holes.emplace(allocation{hole.start_page, in alloc()
141 heap_holes.emplace(allocation{allocation_end_pag in alloc()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_wire/client/
H A DClient.cpp88 auto* allocation = TextureAllocator().New(this); in ReserveTexture() local
91 result.texture = ToAPI(allocation->object.get()); in ReserveTexture()
92 result.id = allocation->object->id; in ReserveTexture()
93 result.generation = allocation->generation; in ReserveTexture()
100 auto* allocation = SwapChainAllocator().New(this); in ReserveSwapChain() local
103 result.swapchain = ToAPI(allocation->object.get()); in ReserveSwapChain()
104 result.id = allocation->object->id; in ReserveSwapChain()
105 result.generation = allocation->generation; in ReserveSwapChain()
112 auto* allocation = DeviceAllocator().New(this); in ReserveDevice() local
115 result.device = ToAPI(allocation in ReserveDevice()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
H A DResourceMemoryAllocatorVk.cpp69 void DeallocateMemory(const ResourceMemoryAllocation& allocation) { in DeallocateMemory() argument
70 mBuddySystem.Deallocate(allocation); in DeallocateMemory()
99 void DeallocateResourceHeap(std::unique_ptr<ResourceHeapBase> allocation) override {
100 mDevice->GetFencedDeleter()->DeleteWhenUnused(ToBackend(allocation.get())->GetMemory());
161 // If sub-allocation failed, allocate memory just for it. in Allocate()
183 void ResourceMemoryAllocator::Deallocate(ResourceMemoryAllocation* allocation) { in Deallocate() argument
184 switch (allocation->GetInfo().mMethod) { in Deallocate()
185 // Some memory allocation can never be initialized, for example when wrapping in Deallocate()
190 // For direct allocation we can put the memory for deletion immediately and the fence in Deallocate()
193 ResourceHeap* heap = ToBackend(allocation in Deallocate()
[all...]
/third_party/lame/mpglib/
H A Dlayer1.c53 unsigned char allocation[SBLIMIT][2]; member
72 si->allocation[i][0] = b0; in I_step_one()
73 si->allocation[i][1] = b1; in I_step_one()
79 si->allocation[i][0] = b; in I_step_one()
80 si->allocation[i][1] = b; in I_step_one()
85 unsigned char n0 = si->allocation[i][0]; in I_step_one()
86 unsigned char n1 = si->allocation[i][1]; in I_step_one()
96 si->allocation[i][0] = b0; in I_step_one()
101 unsigned char n0 = si->allocation[i][0]; in I_step_one()
123 unsigned char n0 = si->allocation[ in I_step_two()
[all...]
/third_party/skia/src/gpu/vk/
H A DGrVkAMDMemoryAllocator.cpp217 VmaAllocation allocation; in allocateImageMemory() local
218 VkResult result = vmaAllocateMemoryForImage(fAllocator, image, &info, &allocation, nullptr); in allocateImageMemory()
220 *backendMemory = (GrVkBackendMemory)allocation; in allocateImageMemory()
225 vmaGetNewBlockStats(allocation, &newBlockflag); in allocateImageMemory()
228 vmaClearNewBlockStats(allocation); in allocateImageMemory()
230 // After swap, allocation belongs to vma reserved block. in allocateImageMemory()
231 VkResult result2 = vmaSwapReservedBlock(fAllocator, image, &info, &allocation, nullptr); in allocateImageMemory()
245 PreAllocMemory(fAllocator, allocation); in allocateImageMemory()
319 VmaAllocation allocation; in allocateBufferMemory() local
320 VkResult result = vmaAllocateMemoryForBuffer(fAllocator, buffer, &info, &allocation, nullpt in allocateBufferMemory()
330 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; freeMemory() local
336 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; getAllocInfo() local
364 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; mapMemory() local
370 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; unmapMemory() local
377 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; flushMemory() local
384 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; invalidateMemory() local
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_wire/
H A DWireDeserializeAllocator.cpp39 char* allocation = static_cast<char*>(malloc(allocationSize)); in GetSpace() local
40 if (allocation == nullptr) { in GetSpace()
44 mAllocations.push_back(allocation); in GetSpace()
45 mCurrentBuffer = allocation; in GetSpace()
51 for (auto allocation : mAllocations) { in Reset()
52 free(allocation); in Reset()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A Dvk_mem_alloc_wrapper.cpp98 void FreeMemory(VmaAllocator allocator, VmaAllocation allocation) in FreeMemory() argument
100 vmaFreeMemory(allocator, allocation); in FreeMemory()
149 VkResult MapMemory(VmaAllocator allocator, VmaAllocation allocation, void **ppData) in MapMemory() argument
151 return vmaMapMemory(allocator, allocation, ppData); in MapMemory()
154 void UnmapMemory(VmaAllocator allocator, VmaAllocation allocation) in UnmapMemory() argument
156 return vmaUnmapMemory(allocator, allocation); in UnmapMemory()
160 VmaAllocation allocation, in FlushAllocation()
164 vmaFlushAllocation(allocator, allocation, offset, size); in FlushAllocation()
168 VmaAllocation allocation, in InvalidateAllocation()
172 vmaInvalidateAllocation(allocator, allocation, offse in InvalidateAllocation()
159 FlushAllocation(VmaAllocator allocator, VmaAllocation allocation, VkDeviceSize offset, VkDeviceSize size) FlushAllocation() argument
167 InvalidateAllocation(VmaAllocator allocator, VmaAllocation allocation, VkDeviceSize offset, VkDeviceSize size) InvalidateAllocation() argument
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/white_box/
H A DD3D12DescriptorHeapTests.cpp116 void Deallocate(CPUDescriptorHeapAllocation& allocation) { in Deallocate() argument
117 mAllocator.Deallocate(&allocation); in Deallocate()
904 CPUDescriptorHeapAllocation allocation = allocator.AllocateCPUDescriptors(); in TEST_P() local
905 EXPECT_EQ(allocation.GetHeapIndex(), 0u); in TEST_P()
906 EXPECT_NE(allocation.OffsetFrom(0, 0).ptr, 0u); in TEST_P()
908 allocator.Deallocate(allocation); in TEST_P()
909 EXPECT_FALSE(allocation.IsValid()); in TEST_P()
926 CPUDescriptorHeapAllocation allocation = allocator.AllocateCPUDescriptors(); in TEST_P() local
927 EXPECT_EQ(allocation.GetHeapIndex(), i / kAllocationsPerHeap); in TEST_P()
928 EXPECT_NE(allocation in TEST_P()
956 CPUDescriptorHeapAllocation allocation = allocator.AllocateCPUDescriptors(); TEST_P() local
972 CPUDescriptorHeapAllocation allocation = allocator.AllocateCPUDescriptors(); TEST_P() local
1000 CPUDescriptorHeapAllocation allocation = allocator.AllocateCPUDescriptors(); TEST_P() local
1016 CPUDescriptorHeapAllocation allocation = allocator.AllocateCPUDescriptors(); TEST_P() local
1032 CPUDescriptorHeapAllocation allocation = allocator.AllocateCPUDescriptors(); TEST_P() local
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DBuddyMemoryAllocatorTests.cpp31 void DeallocateResourceHeap(std::unique_ptr<ResourceHeapBase> allocation) override {
53 void Deallocate(ResourceMemoryAllocation& allocation) { in Deallocate() argument
54 mAllocator.Deallocate(allocation); in Deallocate()
66 // Verify a single resource allocation in a single heap.
68 // After one 128 byte resource allocation: in TEST()
72 // max heap size -> --------------------------- An - Resource allocation n in TEST()
82 // Allocate one 128 byte allocation (same size as heap). in TEST()
97 // Verify that multiple allocation are created in separate heaps.
103 // max heap size -> --------------------------- An - Resource allocation n in TEST()
124 // First allocation create in TEST()
399 ResourceMemoryAllocation allocation = allocator.Allocate(4); TEST() local
416 ResourceMemoryAllocation allocation = allocator.Allocate(4); TEST() local
442 ResourceMemoryAllocation allocation = allocator.Allocate(4); TEST() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
H A DvktApiComputeInstanceResultBuffer.cpp79 de::MovePtr<Allocation> allocation = allocator.allocate(requirements, MemoryRequirement::HostVisible); in createResultBuffer() local
81 VK_CHECK(vki.bindBufferMemory(device, *buffer, allocation->getMemory(), allocation->getOffset())); in createResultBuffer()
84 void* mapPtr = allocation->getHostPtr(); in createResultBuffer()
89 flushAlloc(vki, device, *allocation); in createResultBuffer()
91 *outAllocation = allocation; in createResultBuffer()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/
H A DvktApiComputeInstanceResultBuffer.cpp79 de::MovePtr<Allocation> allocation = allocator.allocate(requirements, MemoryRequirement::HostVisible); in createResultBuffer() local
81 VK_CHECK(vki.bindBufferMemory(device, *buffer, allocation->getMemory(), allocation->getOffset())); in createResultBuffer()
84 void* mapPtr = allocation->getHostPtr(); in createResultBuffer()
89 flushAlloc(vki, device, *allocation); in createResultBuffer()
91 *outAllocation = allocation; in createResultBuffer()

Completed in 14 milliseconds

12345678910