/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiBufferComputeInstance.cpp | 69 void* const mapPtr = allocation->getHostPtr(); in createDataBuffer() local 72 deMemset(mapPtr, uninitData, (size_t)offset); in createDataBuffer() 74 deMemset((deUint8 *)mapPtr + offset, initData, initDataSize); in createDataBuffer() 75 deMemset((deUint8 *)mapPtr + offset + initDataSize, uninitData, in createDataBuffer() 116 void* mapPtr = allocation->getHostPtr(); in createColorDataBuffer() local 119 deMemset(mapPtr, 0x5A, (size_t) offset); in createColorDataBuffer() 121 deMemcpy((deUint8 *) mapPtr + offset, color1.getPtr(), sizeof(tcu::Vec4)); in createColorDataBuffer() 122 deMemcpy((deUint8 *) mapPtr + offset + sizeof(tcu::Vec4), color2.getPtr(), sizeof(tcu::Vec4)); in createColorDataBuffer() 123 deMemset((deUint8 *) mapPtr + offset + 2 * sizeof(tcu::Vec4), 0x5A, in createColorDataBuffer()
|
D | vktApiComputeInstanceResultBuffer.cpp | 84 void* mapPtr = allocation->getHostPtr(); in createResultBuffer() local 87 deMemcpy(((deUint8 *) mapPtr) + offset, &clearValue, sizeof(float)); in createResultBuffer()
|
/external/skia/src/utils/ |
D | SkCamera.cpp | 270 const SkScalar* mapPtr = (const SkScalar*)(const void*)&fOrientation; in patchToMatrix() local 280 SkUnit3D{mapPtr[6], mapPtr[7], mapPtr[8]}); in patchToMatrix() 292 matrix->set(SkMatrix::kMScaleX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot)); in patchToMatrix() 293 matrix->set(SkMatrix::kMSkewY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot)); in patchToMatrix() 294 matrix->set(SkMatrix::kMPersp0, SkScalarDotDiv(3, patchPtr, 1, mapPtr+6, 1, dot)); in patchToMatrix() 297 matrix->set(SkMatrix::kMSkewX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot)); in patchToMatrix() 298 matrix->set(SkMatrix::kMScaleY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot)); in patchToMatrix() 299 matrix->set(SkMatrix::kMPersp1, SkScalarDotDiv(3, patchPtr, 1, mapPtr+6, 1, dot)); in patchToMatrix() 302 matrix->set(SkMatrix::kMTransX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot)); in patchToMatrix() 303 matrix->set(SkMatrix::kMTransY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot)); in patchToMatrix()
|
/external/skqp/src/utils/ |
D | SkCamera.cpp | 270 const SkScalar* mapPtr = (const SkScalar*)(const void*)&fOrientation; in patchToMatrix() local 280 SkUnit3D{mapPtr[6], mapPtr[7], mapPtr[8]}); in patchToMatrix() 292 matrix->set(SkMatrix::kMScaleX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot)); in patchToMatrix() 293 matrix->set(SkMatrix::kMSkewY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot)); in patchToMatrix() 294 matrix->set(SkMatrix::kMPersp0, SkScalarDotDiv(3, patchPtr, 1, mapPtr+6, 1, dot)); in patchToMatrix() 297 matrix->set(SkMatrix::kMSkewX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot)); in patchToMatrix() 298 matrix->set(SkMatrix::kMScaleY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot)); in patchToMatrix() 299 matrix->set(SkMatrix::kMPersp1, SkScalarDotDiv(3, patchPtr, 1, mapPtr+6, 1, dot)); in patchToMatrix() 302 matrix->set(SkMatrix::kMTransX, SkScalarDotDiv(3, patchPtr, 1, mapPtr, 1, dot)); in patchToMatrix() 303 matrix->set(SkMatrix::kMTransY, SkScalarDotDiv(3, patchPtr, 1, mapPtr+3, 1, dot)); in patchToMatrix()
|
/external/swiftshader/src/OpenGL/libGLES_CM/ |
D | IndexDataManager.cpp | 179 void *mapPtr = NULL; in map() local 183 mapPtr = (char*)mIndexBuffer->lock(sw::PUBLIC) + mWritePosition; in map() 185 if(!mapPtr) in map() 195 return mapPtr; in map()
|
D | VertexDataManager.cpp | 282 void *mapPtr = nullptr; in map() local 287 mapPtr = (char*)mVertexBuffer->lock(sw::PRIVATE) + mWritePosition; in map() 293 return mapPtr; in map()
|
/external/icu/icu4c/source/test/intltest/ |
D | caltest.cpp | 3653 const GregoToLunar * mapPtr = gregoToLunar; // in "caltestdata.h" included above in TestChineseCalendarMapping() local 3656 for (; mapPtr->gyr != 0; mapPtr++) { in TestChineseCalendarMapping() 3658 calGregory->set(mapPtr->gyr, mapPtr->gmo - 1, mapPtr->gda, 8, 0); in TestChineseCalendarMapping() 3663 mapPtr->gyr, mapPtr->gmo, mapPtr->gda, u_errorName(status)); in TestChineseCalendarMapping() 3673 mapPtr->gyr, mapPtr->gmo, mapPtr->gda, u_errorName(status)); in TestChineseCalendarMapping() 3676 if (yr != mapPtr->cyr || mo != mapPtr->cmo || lp != mapPtr->clp || da != mapPtr->cda) { in TestChineseCalendarMapping() 3678 …mapPtr->gyr, mapPtr->gmo, mapPtr->gda, mapPtr->cyr, mapPtr->cmo, mapPtr->clp, mapPtr->cda, yr, mo,… in TestChineseCalendarMapping() 3683 calChinese->set(UCAL_YEAR, mapPtr->cyr); in TestChineseCalendarMapping() 3684 calChinese->set(UCAL_MONTH, mapPtr->cmo - 1); in TestChineseCalendarMapping() 3685 calChinese->set(UCAL_IS_LEAP_MONTH, mapPtr->clp); in TestChineseCalendarMapping() [all …]
|
/external/skia/src/gpu/vk/ |
D | GrVkMemory.cpp | 147 void* mapPtr; in MapAlloc() local 150 alloc.fSize, 0, &mapPtr)); in MapAlloc() 152 mapPtr = nullptr; in MapAlloc() 154 return mapPtr; in MapAlloc()
|
D | GrVkAMDMemoryAllocator.cpp | 205 void* mapPtr; in mapMemory() local 206 vmaMapMemory(fAllocator, allocation, &mapPtr); in mapMemory() 207 return mapPtr; in mapMemory()
|
D | GrVkGpu.cpp | 579 void* mapPtr = GrVkMemory::MapAlloc(this, alloc); in uploadTexDataLinear() local 580 if (!mapPtr) { in uploadTexDataLinear() 583 mapPtr = reinterpret_cast<char*>(mapPtr) + offset; in uploadTexDataLinear() 585 SkRectMemcpy(mapPtr, static_cast<size_t>(layout.rowPitch), data, rowBytes, trimRowBytes, in uploadTexDataLinear() 1318 void* mapPtr = GrVkMemory::MapAlloc(gpu, alloc); in copy_testing_data() local 1319 if (!mapPtr) { in copy_testing_data() 1322 mapPtr = reinterpret_cast<char*>(mapPtr) + offset; in copy_testing_data() 1327 SkRectMemcpy(mapPtr, dstRowBytes, srcData, srcRowBytes, trimRowBytes, h); in copy_testing_data() 1331 memset(mapPtr, 0, dstRowBytes * h); in copy_testing_data()
|
/external/skqp/src/gpu/vk/ |
D | GrVkMemory.cpp | 147 void* mapPtr; in MapAlloc() local 150 alloc.fSize, 0, &mapPtr)); in MapAlloc() 152 mapPtr = nullptr; in MapAlloc() 154 return mapPtr; in MapAlloc()
|
D | GrVkAMDMemoryAllocator.cpp | 205 void* mapPtr; in mapMemory() local 206 vmaMapMemory(fAllocator, allocation, &mapPtr); in mapMemory() 207 return mapPtr; in mapMemory()
|
D | GrVkGpu.cpp | 576 void* mapPtr = GrVkMemory::MapAlloc(this, alloc); in uploadTexDataLinear() local 577 if (!mapPtr) { in uploadTexDataLinear() 580 mapPtr = reinterpret_cast<char*>(mapPtr) + offset; in uploadTexDataLinear() 582 SkRectMemcpy(mapPtr, static_cast<size_t>(layout.rowPitch), data, rowBytes, trimRowBytes, in uploadTexDataLinear() 1306 void* mapPtr = GrVkMemory::MapAlloc(gpu, alloc); in copy_testing_data() local 1307 if (!mapPtr) { in copy_testing_data() 1310 mapPtr = reinterpret_cast<char*>(mapPtr) + offset; in copy_testing_data() 1315 SkRectMemcpy(mapPtr, dstRowBytes, srcData, srcRowBytes, trimRowBytes, h); in copy_testing_data() 1319 memset(mapPtr, 0, dstRowBytes * h); in copy_testing_data()
|
/external/deqp/modules/gles31/functional/ |
D | es31fIndirectComputeDispatchTests.cpp | 299 void* mapPtr = DE_NULL; in verifyResultBuffer() local 305 mapPtr = gl.mapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, resultBufferSize, GL_MAP_READ_BIT); in verifyResultBuffer() 308 TCU_CHECK(mapPtr); in verifyResultBuffer() 313 const deUint8* const srcPtr = (const deUint8*)mapPtr + cmdNdx*resultBlockSize; in verifyResultBuffer() 329 if (mapPtr) in verifyResultBuffer()
|
D | es31fOpaqueTypeIndexingTests.cpp | 1150 const void* mapPtr = DE_NULL; in iterate() local 1154 mapPtr = gl.mapBufferRange(GL_ATOMIC_COUNTER_BUFFER, 0, m_numCounters*4, GL_MAP_READ_BIT); in iterate() 1156 TCU_CHECK(mapPtr); in iterate() 1157 std::copy((const deUint32*)mapPtr, (const deUint32*)mapPtr + m_numCounters, &counterValues[0]); in iterate() 1162 if (mapPtr) in iterate()
|
D | es31fTessellationGeometryInteractionTests.cpp | 2942 …const void* mapPtr = gl.mapBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, 0, (int)sizeof(feedbackVal… in iterate() local 2945 if (mapPtr == DE_NULL) in iterate() 2948 deMemcpy(feedbackValues, mapPtr, sizeof(feedbackValues)); in iterate()
|
D | es31fSSBOLayoutCase.cpp | 2652 …const void* mapPtr = gl.mapBufferRange(GL_ATOMIC_COUNTER_BUFFER, 0, acBufferInfo.dataSize, GL_MAP… in execute() local 2657 TCU_CHECK(mapPtr); in execute() 2659 resCount = *(const int*)((const deUint8*)mapPtr + acVarInfo.offset); in execute()
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
D | IndexDataManager.cpp | 398 void *mapPtr = NULL; in map() local 402 mapPtr = (char*)mIndexBuffer->lock(sw::PUBLIC) + mWritePosition; in map() 404 if(!mapPtr) in map() 414 return mapPtr; in map()
|
D | VertexDataManager.cpp | 310 void *mapPtr = nullptr; in map() local 315 mapPtr = (char*)mVertexBuffer->lock(sw::PRIVATE) + mWritePosition; in map() 321 return mapPtr; in map()
|
/external/deqp/modules/gles3/performance/ |
D | es3pBufferDataUploadTests.cpp | 2844 void* mapPtr; in attemptBufferMap() local 2853 mapPtr = gl.mapBufferRange(GL_ARRAY_BUFFER, 0, result.writtenSize, m_mapFlags); in attemptBufferMap() 2857 mapPtr = gl.mapBufferRange(GL_ARRAY_BUFFER, bufferSize / 4, result.writtenSize, m_mapFlags); in attemptBufferMap() 2861 if (!mapPtr) in attemptBufferMap() 2869 result.duration.writeDuration = medianTimeMemcpy(mapPtr, &m_zeroData[0], result.writtenSize); in attemptBufferMap() 3064 void* mapPtr; in attemptBufferMap() local 3073 mapPtr = gl.mapBufferRange(GL_ARRAY_BUFFER, 0, mappedSize, m_mapFlags); in attemptBufferMap() 3077 mapPtr = gl.mapBufferRange(GL_ARRAY_BUFFER, bufferSize / 4, mappedSize, m_mapFlags); in attemptBufferMap() 3081 if (!mapPtr) in attemptBufferMap() 3090 result.duration.writeDuration = medianTimeMemcpy(mapPtr, &m_zeroData[0], result.writtenSize); in attemptBufferMap() [all …]
|
/external/deqp/modules/glshared/ |
D | glsBufferTestUtil.cpp | 397 const deUint8* mapPtr = DE_NULL; in verify() local 401 mapPtr = (const deUint8*)glMapBufferRange(target, offset, numBytes, GL_MAP_READ_BIT); in verify() 403 TCU_CHECK(mapPtr); in verify() 405 isOk = compareByteArrays(m_log, mapPtr, reference+offset, numBytes); in verify()
|
D | glsShaderExecUtil.cpp | 1033 void* mapPtr = gl.mapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, inputBufferSize, GL_MAP_WRITE_BIT); in uploadInputBuffer() local 1035 TCU_CHECK(mapPtr); in uploadInputBuffer() 1045 copyToBuffer(varType, layout, numValues, inputPtrs[inputNdx], mapPtr); in uploadInputBuffer() 1068 void* mapPtr = gl.mapBufferRange(GL_SHADER_STORAGE_BUFFER, 0, outputBufferSize, GL_MAP_READ_BIT); in readOutputBuffer() local 1070 TCU_CHECK(mapPtr); in readOutputBuffer() 1080 copyFromBuffer(varType, layout, numValues, mapPtr, outputPtrs[outputNdx]); in readOutputBuffer()
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktOpaqueTypeIndexingTests.cpp | 1708 const void* mapPtr = atomicOpBuffer.getHostPtr(); in iterate() local 1709 DE_ASSERT(mapPtr != DE_NULL); in iterate() 1711 std::copy((const deUint32*)mapPtr, (const deUint32*)mapPtr + numCounters, &counterValues[0]); in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/memory/ |
D | vktMemoryExternalMemoryHostTests.cpp | 490 void* const mapPtr = m_vertexBufferAllocation->getHostPtr(); in createBindMemoryInitializeVertexBuffer() local 492 deMemcpy(mapPtr, triangleData, sizeof(triangleData)); in createBindMemoryInitializeVertexBuffer()
|
/external/deqp/external/vulkancts/modules/vulkan/binding_model/ |
D | vktBindingShaderAccessTests.cpp | 1450 void* const mapPtr = bufferMemory->getHostPtr(); in createSourceBuffer() local 1454 deMemcpy((deUint8*)mapPtr + preGuardOffset, &preGuardValue, sizeof(float)); in createSourceBuffer() 1456 deMemcpy((deUint8*)mapPtr + offset, &s_colors[8 * (setNdx % 2)], sizeof(s_colors) / 2); in createSourceBuffer() 1458 deMemcpy((deUint8*)mapPtr + postGuardOffset, &postGuardValue, sizeof(float)); in createSourceBuffer() 1459 …deMemset((deUint8*)mapPtr + offset + sizeof(s_colors) / 2, 0x5A, (size_t)bufferSize - (size_t)offs… in createSourceBuffer() 2012 void* mapPtr = allocation->getHostPtr(); in createResultBuffer() local 2015 deMemcpy(((deUint8*)mapPtr) + offset, &clearValue, sizeof(float)); in createResultBuffer() 2422 void* mapPtr = allocation->getHostPtr(); in createColorDataBuffer() local 2425 deMemset(mapPtr, 0x5A, (size_t)offset); in createColorDataBuffer() 2426 deMemcpy((deUint8*)mapPtr + offset, value1.getPtr(), sizeof(tcu::Vec4)); in createColorDataBuffer() [all …]
|