Home
last modified time | relevance | path

Searched refs:sizeToAllocate (Results 1 – 3 of 3) sorted by relevance

/external/OpenCL-CTS/test_conformance/api/
Dtest_api_min_max.cpp1345 size_t sizeToAllocate = ((size_t)currentSize/sizeof( cl_int ))*sizeof(cl_int); in test_min_max_constant_buffer_size() local
1346 size_t numberOfInts = sizeToAllocate/sizeof(cl_int); in test_min_max_constant_buffer_size()
1347 constantData = (cl_int *)malloc( sizeToAllocate); in test_min_max_constant_buffer_size()
1360 sizeToAllocate, constantData, &error); in test_min_max_constant_buffer_size()
1362 streams[1] = clCreateBuffer(context, CL_MEM_READ_WRITE, sizeToAllocate, in test_min_max_constant_buffer_size()
1409 resultData = (cl_int *)malloc(sizeToAllocate); in test_min_max_constant_buffer_size()
1418 …error = clEnqueueReadBuffer(queue, streams[1], CL_TRUE, 0, sizeToAllocate, resultData, 0, NULL, NU… in test_min_max_constant_buffer_size()
1726 size_t sizeToAllocate = ((size_t)(maxSize-kernelLocalUsage)/sizeof( cl_int ))*sizeof(cl_int); in test_min_max_local_mem_size() local
1727 size_t numberOfInts = sizeToAllocate/sizeof(cl_int); in test_min_max_local_mem_size()
1729 log_info("Attempting to use %lld bytes of local memory.\n", (cl_ulong)sizeToAllocate); in test_min_max_local_mem_size()
[all …]
/external/angle/src/libANGLE/renderer/metal/
Dmtl_buffer_pool.mm179 size_t sizeToAllocate = roundUp(sizeInBytes, mAlignment);
182 checkedNextWriteOffset += sizeToAllocate;
194 if (sizeToAllocate > mSize)
196 mSize = std::max(mInitialSize, sizeToAllocate);
249 mNextAllocationOffset += static_cast<uint32_t>(sizeToAllocate);
/external/angle/src/libANGLE/renderer/vulkan/
Dvk_helpers.cpp2047 size_t sizeToAllocate = roundUp(sizeInBytes, mAlignment); in allocateFromCurrentBuffer() local
2049 checkedNextWriteOffset += sizeToAllocate; in allocateFromCurrentBuffer()
2063 mNextAllocationOffset += static_cast<uint32_t>(sizeToAllocate); in allocateFromCurrentBuffer()
2077 size_t sizeToAllocate = roundUp(sizeInBytes, mAlignment); in allocateWithAlignment() local
2080 checkedNextWriteOffset += sizeToAllocate; in allocateWithAlignment()
2095 const size_t sizeIgnoringHistory = std::max(mInitialSize, sizeToAllocate); in allocateWithAlignment()
2096 if (sizeToAllocate > mSize || sizeIgnoringHistory < mSize / 4) in allocateWithAlignment()
2153 mNextAllocationOffset += static_cast<uint32_t>(sizeToAllocate); in allocateWithAlignment()