Lines Matching defs:allocation
21 * \brief Memory allocation callback utilities.
130 AllocationCallbackRecord AllocationCallbackRecord::allocation (size_t size, size_t alignment, VkSystemAllocationScope scope, void* returnedPtr)
135 record.data.allocation.size = size;
136 record.data.allocation.alignment = alignment;
137 record.data.allocation.scope = scope;
138 record.data.allocation.returnedPtr = returnedPtr;
243 m_records.append(AllocationCallbackRecord::allocation(size, alignment, allocationScope, ptr));
350 return record.data.allocation.alignment;
377 const VkSystemAllocationScope* const scopePtr = record.type == AllocationCallbackRecord::TYPE_ALLOCATION ? &record.data.allocation.scope
395 // Validate actual allocation behavior
400 if (record.data.allocation.returnedPtr)
402 if (!de::contains(ptrToSlotIndex, record.data.allocation.returnedPtr))
404 ptrToSlotIndex[record.data.allocation.returnedPtr] = allocations.size();
409 const size_t slotNdx = ptrToSlotIndex[record.data.allocation.returnedPtr];
591 log << TestLog::Message << "ERROR: Found " << results.violations.size() << " invalid allocation callbacks!" << TestLog::EndMessage;
598 const VkSystemAllocationScope scope = record.type == AllocationCallbackRecord::TYPE_ALLOCATION ? record.data.allocation.scope
659 const size_t size = (alloc->type == AllocationCallbackRecord::TYPE_ALLOCATION ? alloc->data.allocation.size : alloc->data.reallocation.size);
660 const size_t alignment = (alloc->type == AllocationCallbackRecord::TYPE_ALLOCATION ? alloc->data.allocation.alignment : alloc->data.reallocation.alignment);
679 str << "ALLOCATION: size=" << record.data.allocation.size
680 << ", alignment=" << record.data.allocation.alignment
681 << ", scope=" << record.data.allocation.scope
682 << ", returnedPtr=" << tcu::toHex(record.data.allocation.returnedPtr);
747 str << "Internal allocation total for (" << violation.record.data.internalAllocation.type << ", " << violation.record.data.internalAllocation.scope << ") is negative";
755 str << "Invalid internal allocation type " << tcu::toHex(violation.record.data.internalAllocation.type);
761 str << "Invalid allocation scope";