/third_party/vk-gl-cts/framework/delibs/decpp/ |
D | deBlockBuffer.hpp | 57 void write (int numElements, const T* elements); 58 int tryWrite (int numElements, const T* elements); 62 void read (int numElements, T* elements); 63 int tryRead (int numElements, T* elements); 72 int writeToCurrentBlock (int numElements, const T* elements, bool blocking); 73 int readFromCurrentBlock(int numElements, T* elements, bool blocking); 175 int BlockBuffer<T>::writeToCurrentBlock (int numElements, const T* elements, bool blocking) in writeToCurrentBlock() argument 177 DE_ASSERT(numElements > 0 && elements != DE_NULL); in writeToCurrentBlock() 202 int numToWrite = de::min(numElements, m_blockSize-m_writePos); in writeToCurrentBlock() 218 int BlockBuffer<T>::readFromCurrentBlock (int numElements, T* elements, bool blocking) in readFromCurrentBlock() argument [all …]
|
D | deArrayBuffer.hpp | 54 ArrayBuffer (size_t numElements); 55 ArrayBuffer (const T* ptr, size_t numElements); 61 …void setStorage (size_t numElements); // !< \note after a succesful call buffer contents are un… 84 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (size_t numElements) in ArrayBuffer() argument 88 if (numElements) in ArrayBuffer() 91 const size_t storageSize = (numElements - 1) * Stride + sizeof(T); in ArrayBuffer() 98 m_cap = numElements; in ArrayBuffer() 103 ArrayBuffer<T,Alignment,Stride>::ArrayBuffer (const T* ptr, size_t numElements) in ArrayBuffer() argument 107 if (numElements) in ArrayBuffer() 110 ArrayBuffer<T,Alignment,Stride> tmp(numElements); in ArrayBuffer() [all …]
|
D | deAppendList.cpp | 58 deUint32 numElements; member 63 : numElements (numElements_) in SharedState() 81 for (deUint32 elemNdx = 0; elemNdx < m_shared->numElements; elemNdx++) in run() 97 void runAppendListTest (deUint32 numThreads, deUint32 numElements, deUint32 numElementsHint) in runAppendListTest() argument 99 SharedState sharedState (numThreads, numElements, numElementsHint); in runAppendListTest() 111 DE_TEST_ASSERT(sharedState.testList.size() == (size_t)numElements*(size_t)numThreads); in runAppendListTest() 131 DE_TEST_ASSERT(countByThread[threadNdx] == numElements); in runAppendListTest()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmWorkgroupMemoryTests.cpp | 152 const int numElements = 128; in addComputeWorkgroupMemoryTests() local 282 vector<double> inputData = getFloat64s(rnd, numElements); in addComputeWorkgroupMemoryTests() 286 outputData.reserve(numElements); in addComputeWorkgroupMemoryTests() 287 for (deUint32 numIdx = 0; numIdx < numElements; ++numIdx) in addComputeWorkgroupMemoryTests() 288 outputData.push_back(inputData[numElements - numIdx - 1]); in addComputeWorkgroupMemoryTests() 309 vector<float> inputData = getFloat32s(rnd, numElements); in addComputeWorkgroupMemoryTests() 313 outputData.reserve(numElements); in addComputeWorkgroupMemoryTests() 314 for (deUint32 numIdx = 0; numIdx < numElements; ++numIdx) in addComputeWorkgroupMemoryTests() 315 outputData.push_back(inputData[numElements - numIdx - 1]); in addComputeWorkgroupMemoryTests() 341 vector<deFloat16> inputData = getFloat16s(rnd, numElements); in addComputeWorkgroupMemoryTests() [all …]
|
D | vktSpvAsmIntegerDotProductTests.cpp | 478 void fillDotProductOutputs(int numElements, vector<LHSOperandT> &inputInts1, vector<RHSOperandT> &i… in fillDotProductOutputs() argument 482 for (int ndx = 0; ndx < numElements; ++ndx) in fillDotProductOutputs() 513 int numElements, vector<OperandT> &inputInts1, vector<OperandT> &inputInts2, in addOpSDotKHRComputeTests() argument 519 vector<OutputT> outputInts (numElements, 0); in addOpSDotKHRComputeTests() 521 fillDotProductOutputs(numElements, inputInts1, inputInts2, outputInts, inputInfo); in addOpSDotKHRComputeTests() 529 spec.numWorkGroups = IVec3(numElements, 1, 1); in addOpSDotKHRComputeTests() 544 const int numElements = 200; in addOpSDotKHRComputeTests() local 551 vector<T> inputInts1 (numElements * alignedVecLen, 0); in addOpSDotKHRComputeTests() 552 vector<T> inputInts2 (numElements * alignedVecLen, 0); in addOpSDotKHRComputeTests() 554 fillRandomScalars(rnd, vecMin, vecMax, &inputInts1[0], numElements * alignedVecLen); in addOpSDotKHRComputeTests() [all …]
|
D | vktSpvAsmLoopDepLenTests.cpp | 165 const int numElements = 100; in getComputeShaderSpec() local 166 vector<float> inputFloats (numElements, 0); in getComputeShaderSpec() 167 vector<float> outputFloats (numElements, 0); in getComputeShaderSpec() 170 for (size_t ndx = 0; ndx < numElements; ++ndx) in getComputeShaderSpec() 173 for (size_t ndx = 0; ndx < numElements; ++ndx) in getComputeShaderSpec() 192 spec.numWorkGroups = tcu::IVec3(numElements, 1, 1); in getComputeShaderSpec()
|
D | vktSpvAsmLoopDepInfTests.cpp | 149 const int numElements = 100; in getComputeShaderSpec() local 150 vector<float> inputFloats (numElements, 0); in getComputeShaderSpec() 151 vector<float> outputFloats (numElements, 0); in getComputeShaderSpec() 154 for (size_t ndx = 0; ndx < numElements; ++ndx) in getComputeShaderSpec() 157 for (size_t ndx = 0; ndx < numElements; ++ndx) in getComputeShaderSpec() 177 spec.numWorkGroups = tcu::IVec3(numElements, 1, 1); in getComputeShaderSpec()
|
D | vktSpvAsm16bitStorageTests.cpp | 1153 const int numElements = 128; in addCompute16bitStorageUniform16To32Group() local 1253 …ecorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 2\n", false, 0, numElements, 1}, in addCompute16bitStorageUniform16To32Group() 1254 …Decorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 2\n", true, 5, numElements, 1}, in addCompute16bitStorageUniform16To32Group() 1255 …Decorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 2\n", true, 8, numElements, 1}, in addCompute16bitStorageUniform16To32Group() 1256 …e %v2f32arr ArrayStride 8\nOpDecorate %v2f16arr ArrayStride 4\n", false, 0, numElements / 2, 2}, in addCompute16bitStorageUniform16To32Group() 1257 …m4v2f32arr ArrayStride 32\nOpDecorate %m4v2f16arr ArrayStride 16\n", false, 0, numElements / 8, 8} in addCompute16bitStorageUniform16To32Group() 1260 …ecorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 16\n", false, 0, numElements, 8}, in addCompute16bitStorageUniform16To32Group() 1261 …Decorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 16\n", true, 5, numElements, 8}, in addCompute16bitStorageUniform16To32Group() 1262 …Decorate %f32arr ArrayStride 4\nOpDecorate %f16arr ArrayStride 16\n", true, 8, numElements, 8}, in addCompute16bitStorageUniform16To32Group() 1263 …e %v2f32arr ArrayStride 8\nOpDecorate %v2f16arr ArrayStride 16\n", false, 0, numElements / 2, 8}, in addCompute16bitStorageUniform16To32Group() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/ |
D | DrawCallPerf.cpp | 321 void ClearThenDraw(unsigned int iterations, GLsizei numElements) in ClearThenDraw() argument 327 glDrawArrays(GL_TRIANGLES, 0, numElements); in ClearThenDraw() 331 void JustDraw(unsigned int iterations, GLsizei numElements) in JustDraw() argument 335 glDrawArrays(GL_TRIANGLES, 0, numElements); in JustDraw() 340 void ChangeVertexAttribThenDraw(unsigned int iterations, GLsizei numElements, GLuint buffer) in ChangeVertexAttribThenDraw() argument 349 glDrawArrays(GL_TRIANGLES, 0, numElements); in ChangeVertexAttribThenDraw() 355 glDrawArrays(GL_TRIANGLES, 0, numElements); in ChangeVertexAttribThenDraw() 360 GLsizei numElements, in ChangeArrayBuffersThenDraw() argument 371 glDrawArrays(GL_TRIANGLES, 0, numElements); in ChangeArrayBuffersThenDraw() 378 glDrawArrays(GL_TRIANGLES, 0, numElements); in ChangeArrayBuffersThenDraw() [all …]
|
D | BufferSubData.cpp | 99 GLsizeiptr GetNormalizedData(GLsizeiptr numElements, GLfloat *floatData, std::vector<uint8_t> *data) in GetNormalizedData() argument 101 GLsizeiptr triDataSize = sizeof(T) * numElements; in GetNormalizedData() 106 for (GLsizeiptr dataIndex = 0; dataIndex < numElements; dataIndex++) in GetNormalizedData() 117 GLsizeiptr GetIntData(GLsizeiptr numElements, GLfloat *floatData, std::vector<uint8_t> *data) in GetIntData() argument 119 GLsizeiptr triDataSize = sizeof(T) * numElements; in GetIntData() 124 for (GLsizeiptr dataIndex = 0; dataIndex < numElements; dataIndex++) in GetIntData() 148 GLsizeiptr numElements = componentCount * 3; in GetVertexData() local 153 triDataSize = GetNormalizedData<GLbyte>(numElements, floatData, data); in GetVertexData() 156 triDataSize = GetNormalizedData<GLshort>(numElements, floatData, data); in GetVertexData() 159 triDataSize = GetNormalizedData<GLint>(numElements, floatData, data); in GetVertexData() [all …]
|
D | MapBufferRange.cpp | 108 GLsizei GetNormalizedData(GLsizeiptr numElements, in GetNormalizedData() argument 112 GLsizei triDataSize = sizeof(T) * numElements; in GetNormalizedData() 117 for (GLsizeiptr dataIndex = 0; dataIndex < numElements; dataIndex++) in GetNormalizedData() 128 GLsizei GetIntData(GLsizeiptr numElements, const GLfloat *floatData, std::vector<uint8_t> *data) in GetIntData() argument 130 GLsizei triDataSize = sizeof(T) * numElements; in GetIntData() 135 for (GLsizeiptr dataIndex = 0; dataIndex < numElements; dataIndex++) in GetIntData() 159 GLsizeiptr numElements = componentCount * 3; in GetVertexData() local 164 triDataSize = GetNormalizedData<GLbyte>(numElements, floatData, data); in GetVertexData() 167 triDataSize = GetNormalizedData<GLshort>(numElements, floatData, data); in GetVertexData() 170 triDataSize = GetNormalizedData<GLint>(numElements, floatData, data); in GetVertexData() [all …]
|
/third_party/wayland-ivi-extension/ivi-layermanagement-examples/EGLWLMockNavigation/src/ |
D | House.cpp | 35 … vec3f size, vec4f houseColor, ShaderBase* pShader, TextureLoader* houseTexture, float numElements) in House() argument 39 , numElements(numElements) in House() 112 m_texCoords[0].x = numElements; in render() 116 m_texCoords[7].y = numElements; in render() 121 m_texCoords[3].x = numElements; in render() 122 m_texCoords[3].y = numElements; in render() 127 m_texCoords[1].x = numElements; in render() 130 m_texCoords[2].x = numElements; in render() 131 m_texCoords[2].y = numElements; in render() 134 m_texCoords[3].y = numElements; in render() [all …]
|
/third_party/vk-gl-cts/framework/opengl/ |
D | gluDrawUtil.hpp | 117 int numElements; //!< Number of elements in total. member 126 , numElements (numElements_) in VertexArrayPointer() 136 , numElements (0) in VertexArrayPointer() 162 int numElements; //!< Number of elements to be drawn. member 168 , numElements (numElements_) in PrimitiveList() 176 , numElements (numElements_) in PrimitiveList() 184 , numElements (0) in PrimitiveList() 209 inline PrimitiveList NAME (int numElements) \ 211 return PrimitiveList(TYPE, numElements); \ 213 inline PrimitiveList NAME (int numElements, const deUint8* indices) \ [all …]
|
D | gluDrawUtil.cpp | 47 int numElements; member 62 , numElements (numElements_) in VertexAttributeDescriptor() 73 , numElements (0) in VertexAttributeDescriptor() 279 const int size = elementSize*va.pointer.numElements; in appendAttributeNonStrided() 288 va.pointer.numElements, in appendAttributeNonStrided() 305 dstVA.numElements == srcPtr.numElements); in copyToLayout() 316 for (int ndx = 0; ndx < dstVA.numElements; ndx++) in copyToLayout() 320 …emcpy((deUint8*)dstBasePtr + (deUintptr)dstVA.pointer, srcPtr.data, elementSize*dstVA.numElements); in copyToLayout() 397 vertexArray.pointer.numElements, in getUserPointerDescriptor() 462 if (primitives.numElements < 0) in isDrawCallValid() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/ |
D | BufferSubData.cpp | 99 GLsizeiptr GetNormalizedData(GLsizeiptr numElements, GLfloat *floatData, std::vector<uint8_t> *data) in GetNormalizedData() argument 101 GLsizeiptr triDataSize = sizeof(T) * numElements; in GetNormalizedData() 106 for (GLsizeiptr dataIndex = 0; dataIndex < numElements; dataIndex++) in GetNormalizedData() 117 GLsizeiptr GetIntData(GLsizeiptr numElements, GLfloat *floatData, std::vector<uint8_t> *data) in GetIntData() argument 119 GLsizeiptr triDataSize = sizeof(T) * numElements; in GetIntData() 124 for (GLsizeiptr dataIndex = 0; dataIndex < numElements; dataIndex++) in GetIntData() 148 GLsizeiptr numElements = componentCount * 3; in GetVertexData() local 153 triDataSize = GetNormalizedData<GLbyte>(numElements, floatData, data); in GetVertexData() 156 triDataSize = GetNormalizedData<GLshort>(numElements, floatData, data); in GetVertexData() 159 triDataSize = GetNormalizedData<GLint>(numElements, floatData, data); in GetVertexData() [all …]
|
D | DrawCallPerf.cpp | 209 void ClearThenDraw(unsigned int iterations, GLsizei numElements) in ClearThenDraw() argument 215 glDrawArrays(GL_TRIANGLES, 0, numElements); in ClearThenDraw() 219 void JustDraw(unsigned int iterations, GLsizei numElements) in JustDraw() argument 223 glDrawArrays(GL_TRIANGLES, 0, numElements); in JustDraw() 228 void ChangeVertexAttribThenDraw(unsigned int iterations, GLsizei numElements, GLuint buffer) in ChangeVertexAttribThenDraw() argument 237 glDrawArrays(GL_TRIANGLES, 0, numElements); in ChangeVertexAttribThenDraw() 243 glDrawArrays(GL_TRIANGLES, 0, numElements); in ChangeVertexAttribThenDraw() 248 GLsizei numElements, in ChangeArrayBuffersThenDraw() argument 259 glDrawArrays(GL_TRIANGLES, 0, numElements); in ChangeArrayBuffersThenDraw() 266 glDrawArrays(GL_TRIANGLES, 0, numElements); in ChangeArrayBuffersThenDraw() [all …]
|
/third_party/vk-gl-cts/framework/delibs/depool/ |
D | dePoolArray.h | 43 int numElements; /*!< Number of elements in the array. */ member 99 int numElements; \ 125 return arr->numElements; \ 140 arr->numElements = size; \ 146 arr->numElements = 0; \ 151 DE_ASSERT(ndx >= 0 && ndx < arr->numElements); \ 161 DE_ASSERT(ndx >= 0 && ndx < arr->numElements); \ 171 if ((arr->numElements + 1 >= arr->capacity) && !TYPENAME##_reserve(arr, arr->numElements + 1)) \ 173 arr->numElements++; \ 174 TYPENAME##_set(arr, arr->numElements - 1, elem); \ [all …]
|
D | dePoolHeap.h | 104 int numElements = TYPENAME##Array_getNumElements(array); \ 108 if (childNdx0 < numElements) \ 110 int childNdx1 = deMin32(childNdx0 + 1, numElements - 1); \ 147 int numElements = TYPENAME##Array_getNumElements(array); \ 148 if (!TYPENAME##Array_setSize(array, numElements + 1)) \ 150 TYPENAME##Array_set(array, numElements, elem); \ 151 TYPENAME##_moveUp(heap, numElements); \ 159 int numElements = TYPENAME##Array_getNumElements(array); \ 160 TYPENAME##Array_set(array, 0, TYPENAME##Array_get(array, numElements-1)); \ 161 TYPENAME##Array_setSize(array, numElements-1); \
|
D | dePoolHashArray.h | 91 DE_ASSERT(ndx >= 0 && ndx < hashArray->array->numElements); \ 140 int numElements = TYPENAME##Array_getNumElements(hashArray->array); \ 141 DE_ASSERT(TYPENAME##Hash_getNumElements(hashArray->hash) == numElements); \ 143 if (!TYPENAME##Array_setSize(hashArray->array, numElements+1) || \ 144 !TYPENAME##Hash_insert(hashArray->hash, key, numElements)) \ 146 TYPENAME##Array_set(hashArray->array, numElements, value); \ 152 int numElements = TYPENAME##Array_getNumElements(hashArray->array); \ 155 DE_ASSERT(TYPENAME##Hash_getNumElements(hashArray->hash) == numElements); \ 156 if ((keys && !KEYARRAYTYPE##_setSize(keys, numElements)) || \ 157 (values && !VALUEARRAYTYPE##_setSize(values, numElements))) \
|
/third_party/skia/third_party/externals/freetype/src/psaux/ |
D | psarrst.c | 95 size_t numElements ) in cf2_arrstack_setNumElements() argument 103 size_t newSize = numElements * arrstack->sizeItem; in cf2_arrstack_setNumElements() 106 if ( numElements > FT_LONG_MAX / arrstack->sizeItem ) in cf2_arrstack_setNumElements() 114 arrstack->allocated = numElements; in cf2_arrstack_setNumElements() 117 if ( arrstack->count > numElements ) in cf2_arrstack_setNumElements() 121 arrstack->count = numElements; in cf2_arrstack_setNumElements() 140 size_t numElements ) in cf2_arrstack_setCount() argument 144 if ( numElements > arrstack->allocated ) in cf2_arrstack_setCount() 147 if ( !cf2_arrstack_setNumElements( arrstack, numElements ) ) in cf2_arrstack_setCount() 151 arrstack->count = numElements; in cf2_arrstack_setCount()
|
/third_party/freetype/src/psaux/ |
D | psarrst.c | 96 size_t numElements ) in cf2_arrstack_setNumElements() argument 104 size_t newSize = numElements * arrstack->sizeItem; in cf2_arrstack_setNumElements() 107 if ( numElements > FT_LONG_MAX / arrstack->sizeItem ) in cf2_arrstack_setNumElements() 115 arrstack->allocated = numElements; in cf2_arrstack_setNumElements() 118 if ( arrstack->count > numElements ) in cf2_arrstack_setNumElements() 122 arrstack->count = numElements; in cf2_arrstack_setNumElements() 141 size_t numElements ) in cf2_arrstack_setCount() argument 145 if ( numElements > arrstack->allocated ) in cf2_arrstack_setCount() 148 if ( !cf2_arrstack_setNumElements( arrstack, numElements ) ) in cf2_arrstack_setCount() 152 arrstack->count = numElements; in cf2_arrstack_setCount()
|
/third_party/flutter/skia/third_party/externals/freetype/src/psaux/ |
D | psarrst.c | 96 size_t numElements ) in cf2_arrstack_setNumElements() argument 104 size_t newSize = numElements * arrstack->sizeItem; in cf2_arrstack_setNumElements() 107 if ( numElements > FT_LONG_MAX / arrstack->sizeItem ) in cf2_arrstack_setNumElements() 115 arrstack->allocated = numElements; in cf2_arrstack_setNumElements() 118 if ( arrstack->count > numElements ) in cf2_arrstack_setNumElements() 122 arrstack->count = numElements; in cf2_arrstack_setNumElements() 141 size_t numElements ) in cf2_arrstack_setCount() argument 145 if ( numElements > arrstack->allocated ) in cf2_arrstack_setCount() 148 if ( !cf2_arrstack_setNumElements( arrstack, numElements ) ) in cf2_arrstack_setCount() 152 arrstack->count = numElements; in cf2_arrstack_setCount()
|
/third_party/flutter/skia/third_party/externals/angle2/src/common/ |
D | matrix_utils_unittest.cpp | 94 unsigned int numElements = i * j; in TEST() local 95 Matrix<float> m(std::vector<float>(numElements, 1.0f), i, j); in TEST() 98 EXPECT_EQ(m.elements(), std::vector<float>(numElements, 1.0f)); in TEST() 104 unsigned int numElements = i * i; in TEST() local 105 Matrix<float> m(std::vector<float>(numElements, 1.0f), i); in TEST() 108 EXPECT_EQ(m.elements(), std::vector<float>(numElements, 1.0f)); in TEST() 116 unsigned int numElements = i * i; in TEST() local 117 Matrix<float> m1(std::vector<float>(numElements, 2.0f), i); in TEST() 120 std::vector<float> expectedResultElements(numElements, 4.0f); in TEST() 131 unsigned int numElements = i * j; in TEST() local [all …]
|
/third_party/skia/third_party/externals/angle2/src/common/ |
D | matrix_utils_unittest.cpp | 94 unsigned int numElements = i * j; in TEST() local 95 Matrix<float> m(std::vector<float>(numElements, 1.0f), i, j); in TEST() 98 EXPECT_EQ(m.elements(), std::vector<float>(numElements, 1.0f)); in TEST() 104 unsigned int numElements = i * i; in TEST() local 105 Matrix<float> m(std::vector<float>(numElements, 1.0f), i); in TEST() 108 EXPECT_EQ(m.elements(), std::vector<float>(numElements, 1.0f)); in TEST() 116 unsigned int numElements = i * i; in TEST() local 117 Matrix<float> m1(std::vector<float>(numElements, 2.0f), i); in TEST() 120 std::vector<float> expectedResultElements(numElements, 4.0f); in TEST() 131 unsigned int numElements = i * j; in TEST() local [all …]
|
/third_party/vk-gl-cts/framework/randomshaders/ |
D | rsgVariableValue.cpp | 48 int numElements = (int)a.getType().getNumElements(); in compareValueRangesAllTrue() local 49 for (int ndx = 0; ndx < numElements; ndx++) in compareValueRangesAllTrue() 57 int numElements = (int)a.getType().getNumElements(); in compareValueRangesAllTrue() local 61 for (int ndx = 0; ndx < numElements; ndx++) in compareValueRangesAllTrue() 76 for (int ndx = 0; ndx < numElements; ndx++) in compareValueRangesAllTrue() 89 for (int ndx = 0; ndx < numElements; ndx++) in compareValueRangesAllTrue() 213 int numElements = (int)a.getType().getNumElements(); in computeIntersection() local 214 for (int ndx = 0; ndx < numElements; ndx++) in computeIntersection() 219 int numElements = (int)a.getType().getNumElements(); in computeIntersection() local 223 for (int ndx = 0; ndx < numElements; ndx++) in computeIntersection() [all …]
|