/external/deqp/modules/gles31/functional/ |
D | es31fShaderCommonFunctionTests.cpp | 320 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() local 324 curScalarOffset += scalarSize*numValues; in getInputOutputPointers() 526 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local 529 …lars(rnd, floatRanges[precision].x(), floatRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues() 531 …mScalars(rnd, intRanges[precision].x(), intRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues() 538 const int scalarSize = glu::getDataTypeScalarSize(type); in compare() local 545 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() 561 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() 608 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local 613 std::fill((float*)values[0], (float*)values[0] + scalarSize, +1.0f); in getInputValues() [all …]
|
D | es31fShaderIntegerFunctionTests.cpp | 139 const int scalarSize = glu::getDataTypeScalarSize(dataType); in generateRandomInputData() local 147 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in generateRandomInputData() 148 dst[valueNdx*scalarSize + compNdx] = rnd.getUint32() & integerMask; in generateRandomInputData() 153 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in generateRandomInputData() 154 … dst[valueNdx*scalarSize + compNdx] = extendSignTo32(rnd.getUint32() & integerMask, integerLength); in generateRandomInputData() 244 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() local 248 curScalarOffset += scalarSize*numValues; in getInputOutputPointers() 373 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local 399 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in getInputValues() 401 in0[easyCaseNdx*scalarSize + compNdx] = easyCases[easyCaseNdx].x & integerMask; in getInputValues() [all …]
|
D | es31fShaderSharedVarTests.cpp | 191 const int scalarSize = getDataTypeScalarSize(m_basicType); in iterate() local 197 vector<float> values (numValues*scalarSize); in iterate() 206 if (scalarSize == 1) gl.uniform1fv(location, numValues, &values[0]); in iterate() 207 else if (scalarSize == 2) gl.uniform2fv(location, numValues, &values[0]); in iterate() 208 else if (scalarSize == 3) gl.uniform3fv(location, numValues, &values[0]); in iterate() 209 else if (scalarSize == 4) gl.uniform4fv(location, numValues, &values[0]); in iterate() 216 vector<int> values (numValues*scalarSize); in iterate() 225 if (scalarSize == 1) gl.uniform1iv(location, numValues, &values[0]); in iterate() 226 else if (scalarSize == 2) gl.uniform2iv(location, numValues, &values[0]); in iterate() 227 else if (scalarSize == 3) gl.uniform3iv(location, numValues, &values[0]); in iterate() [all …]
|
D | es31fSSBOLayoutCase.cpp | 734 const int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local 741 const int vecSize = scalarSize / numVecs; in generateValue() 744 DE_ASSERT(scalarSize%numVecs == 0); in generateValue() 1015 const int scalarSize = glu::getDataTypeScalarSize(basicType); in generateImmScalarVectorSrc() local 1018 if (scalarSize > 1) in generateImmScalarVectorSrc() 1021 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in generateImmScalarVectorSrc() 1039 if (scalarSize > 1) in generateImmScalarVectorSrc() 1493 const int scalarSize = glu::getDataTypeScalarSize(dstEntry.type); in copyBufferVarData() local 1540 …DE_ASSERT((deIntptr)(srcElemPtr + scalarSize*compSize) - (deIntptr)srcBlockPtr.ptr <= (deIntptr)sr… in copyBufferVarData() 1541 …DE_ASSERT((deIntptr)(dstElemPtr + scalarSize*compSize) - (deIntptr)dstBlockPtr.ptr <= (deIntptr)ds… in copyBufferVarData() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fShaderCommonFunctionTests.cpp | 246 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() local 250 curScalarOffset += scalarSize*numValues; in getInputOutputPointers() 448 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local 451 …lars(rnd, floatRanges[precision].x(), floatRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues() 453 …mScalars(rnd, intRanges[precision].x(), intRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues() 460 const int scalarSize = glu::getDataTypeScalarSize(type); in compare() local 467 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() 483 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() 530 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local 535 std::fill((float*)values[0], (float*)values[0] + scalarSize, +1.0f); in getInputValues() [all …]
|
D | es3fFragmentOutputTests.cpp | 782 int scalarSize = glu::getDataTypeScalarSize(output.type); in iterate() local 797 gl.vertexAttribPointer(loc, scalarSize, glScalarType, GL_FALSE, 0, &inputs[curInVec][0]); in iterate() 799 gl.vertexAttribIPointer(loc, scalarSize, glScalarType, 0, &inputs[curInVec][0]); in iterate() 845 const int scalarSize = glu::getDataTypeScalarSize(output.type); in iterate() local 861 renderIntReference(viewportBuf, gridWidth, gridHeight, scalarSize, (const int*)inputData); in iterate() 863 renderFloatReference(viewportBuf, gridWidth, gridHeight, scalarSize, (const float*)inputData); in iterate()
|
D | es3fTransformFeedbackTests.cpp | 401 int scalarSize = glu::getDataTypeScalarSize(subType.getBasicType()); in genShaderSources() local 404 if (scalarSize == 1) frag << "vec4(" << name << vecIter << ")"; in genShaderSources() 405 else if (scalarSize == 2) frag << "vec2(" << name << vecIter << ").xxyy"; in genShaderSources() 406 else if (scalarSize == 3) frag << "vec3(" << name << vecIter << ").xyzx"; in genShaderSources() 407 else if (scalarSize == 4) frag << "vec4(" << name << vecIter << ")"; in genShaderSources()
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderCommonFunctionTests.cpp | 263 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() local 267 curScalarOffset += scalarSize*numValues; in getInputOutputPointers() 601 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local 604 …lars(rnd, floatRanges[precision].x(), floatRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues() 606 …mScalars(rnd, intRanges[precision].x(), intRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues() 613 const int scalarSize = glu::getDataTypeScalarSize(type); in compare() local 620 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() 636 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() 697 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local 702 std::fill((float*)values[0], (float*)values[0] + scalarSize, +1.0f); in getInputValues() [all …]
|
D | vktShaderIntegerFunctionTests.cpp | 141 const int scalarSize = glu::getDataTypeScalarSize(dataType); in generateRandomInputData() local 149 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in generateRandomInputData() 150 dst[valueNdx*scalarSize + compNdx] = rnd.getUint32() & integerMask; in generateRandomInputData() 155 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in generateRandomInputData() 156 … dst[valueNdx*scalarSize + compNdx] = extendSignTo32(rnd.getUint32() & integerMask, integerLength); in generateRandomInputData() 184 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() local 188 curScalarOffset += scalarSize*numValues; in getInputOutputPointers() 464 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local 490 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in getInputValues() 492 in0[easyCaseNdx*scalarSize + compNdx] = easyCases[easyCaseNdx].x & integerMask; in getInputValues() [all …]
|
D | vktShaderExecutor.cpp | 1743 const int scalarSize = glu::getDataTypeScalarSize(basicType); in copyToBuffer() local 1745 const int numComps = scalarSize / numVecs; in copyToBuffer() 1752 const int srcOffset = size * (elemNdx * scalarSize + vecNdx * numComps); in copyToBuffer() 1771 const int scalarSize = glu::getDataTypeScalarSize(basicType); in copyFromBuffer() local 1773 const int numComps = scalarSize / numVecs; in copyFromBuffer() 1781 const int dstOffset = size * (elemNdx * scalarSize + vecNdx * numComps); in copyFromBuffer() 1958 …st int operationNdx, const glu::DataType type, const std::string& outputType, const int scalarSize) in sclarComparison() argument 2003 for(int ndx = 0; ndx < scalarSize; ++ndx) in sclarComparison()
|
/external/deqp/external/openglcts/modules/common/ |
D | glcShaderLibraryCase.cpp | 126 int scalarSize = getDataTypeScalarSize(val.dataType); in setUniformValue() local 134 int elemNdx = (val.arrayLength == 1) ? 0 : (arrayNdx * scalarSize); in setUniformValue() 381 int scalarSize = getDataTypeScalarSize(val.dataType); in execute() local 389 scalars.resize(numVerticesPerDraw * scalarSize); in execute() 393 for (int ndx = 0; ndx < scalarSize; ndx++) in execute() 394 scalars[repNdx * scalarSize + ndx] = val.elements[arrayNdx * scalarSize + ndx].float32; in execute() 401 for (int ndx = 0; ndx < scalarSize; ndx++) in execute() 403 float v = (float)val.elements[arrayNdx * scalarSize + ndx].int32; in execute() 404 DE_ASSERT(val.elements[arrayNdx * scalarSize + ndx].int32 == (int)v); in execute() 405 scalars[repNdx * scalarSize + ndx] = v; in execute() [all …]
|
D | glcShaderLibrary.cpp | 743 int scalarSize = getDataTypeScalarSize(expectedDataType); in parseValueElement() local 748 if (scalarSize > 1) in parseValueElement() 755 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in parseValueElement() 792 if (scalarNdx != (scalarSize - 1)) in parseValueElement() 796 if (scalarSize > 1) in parseValueElement() 800 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in parseValueElement()
|
D | glcUniformBlockCase.cpp | 604 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local 609 int vecSize = scalarSize / numVecs; in generateValue() 613 DE_ASSERT(scalarSize % numVecs == 0); in generateValue() 865 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValueSrc() local 870 if (scalarSize > 1) in generateValueSrc() 897 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in generateValueSrc() 924 if (scalarSize > 1) in generateValueSrc() 1225 int scalarSize = glu::getDataTypeScalarSize(dstEntry.type); in copyUniformData() local 1254 deMemcpy(dstElemPtr, srcElemPtr, scalarSize * compSize); in copyUniformData()
|
/external/deqp/modules/gles2/scripts/ |
D | gen-swizzles.py | 108 scalarSize = getDataTypeScalarSize(dataType) variable 252 scalarSize = getDataTypeScalarSize(dataType) variable 255 for swizzleIndices in getSwizzlesForWidth(scalarSize):
|
/external/deqp/modules/gles3/scripts/ |
D | gen-swizzles.py | 108 scalarSize = getDataTypeScalarSize(dataType) variable 256 scalarSize = getDataTypeScalarSize(dataType) variable 259 for swizzleIndices in getSwizzlesForWidth(scalarSize):
|
D | gen-swizzle-math-operations.py | 165 scalarSize = getDataTypeScalarSize(dataType) variable 168 for swizzleIndices in getSwizzlesForWidth(scalarSize):
|
/external/deqp/modules/glshared/ |
D | glsShaderLibraryCase.cpp | 780 const int scalarSize = getDataTypeScalarSize(dataType); in setUniformValue() local 782 const int elemNdx = arrayNdx * scalarSize; in setUniformValue() 784 DE_ASSERT(elemNdx+scalarSize <= (int)val.elements.size()); in setUniformValue() 1202 const int scalarSize = getDataTypeScalarSize(dataType); in execute() local 1206 scalars.resize(numVerticesPerDraw * scalarSize); in execute() 1210 for (int ndx = 0; ndx < scalarSize; ndx++) in execute() 1211 scalars[repNdx*scalarSize + ndx] = val.elements[arrayNdx*scalarSize + ndx].float32; in execute() 1218 for (int ndx = 0; ndx < scalarSize; ndx++) in execute() 1220 float v = (float)val.elements[arrayNdx*scalarSize + ndx].int32; in execute() 1221 DE_ASSERT(val.elements[arrayNdx*scalarSize + ndx].int32 == (int)v); in execute() [all …]
|
D | glsUniformBlockCase.cpp | 627 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local 630 int vecSize = scalarSize / numVecs; in generateValue() 634 DE_ASSERT(scalarSize%numVecs == 0); in generateValue() 945 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValueSrc() local 950 if (scalarSize > 1) in generateValueSrc() 977 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in generateValueSrc() 996 if (scalarSize > 1) in generateValueSrc() 1274 int scalarSize = glu::getDataTypeScalarSize(dstEntry.type); in copyUniformData() local 1301 deMemcpy(dstElemPtr, srcElemPtr, scalarSize*compSize); in copyUniformData()
|
D | glsShaderExecUtil.cpp | 974 const int scalarSize = glu::getDataTypeScalarSize(basicType); in copyToBuffer() local 976 const int numComps = scalarSize / numVecs; in copyToBuffer() 982 const int srcOffset = (int)sizeof(deUint32)*(elemNdx*scalarSize + vecNdx*numComps); in copyToBuffer() 1001 const int scalarSize = glu::getDataTypeScalarSize(basicType); in copyFromBuffer() local 1003 const int numComps = scalarSize / numVecs; in copyFromBuffer() 1010 const int dstOffset = (int)sizeof(deUint32)*(elemNdx*scalarSize + vecNdx*numComps); in copyFromBuffer()
|
/external/deqp/framework/randomshaders/ |
D | rsgVariableValue.hpp | 166 int scalarSize = this->getType().getScalarSize(); in operator =() local 168 if (scalarSize == 0) in operator =() 172 std::copy(valueRead.getValuePtr(), valueRead.getValuePtr() + scalarSize*Stride, this->m_value); in operator =() 175 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in operator =()
|
/external/deqp/framework/opengl/ |
D | gluShaderLibrary.cpp | 927 int scalarSize = getDataTypeScalarSize(expectedDataType); in parseValueElement() local 932 if (scalarSize > 1) in parseValueElement() 939 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in parseValueElement() 976 if (scalarNdx != (scalarSize - 1)) in parseValueElement() 980 if (scalarSize > 1) in parseValueElement() 984 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in parseValueElement() 1650 int scalarSize = getDataTypeScalarSize(dataType); in dumpValue() local 1666 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in dumpValue() 1669 const Value::Element& e = val.elements[elemNdx*scalarSize + scalarNdx]; in dumpValue() 1692 float v = val.elements[elemNdx*scalarSize + rowNdx*numCols + colNdx].float32; in dumpValue()
|
/external/deqp/external/vulkancts/modules/vulkan/ssbo/ |
D | vktSSBOLayoutCase.cpp | 772 const int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local 779 const int vecSize = scalarSize / numVecs; in generateValue() 782 DE_ASSERT(scalarSize%numVecs == 0); in generateValue() 1199 const int scalarSize = glu::getDataTypeScalarSize(basicType); in generateImmScalarVectorSrc() local 1202 if (scalarSize > 1) in generateImmScalarVectorSrc() 1205 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in generateImmScalarVectorSrc() 1228 if (scalarSize > 1) in generateImmScalarVectorSrc() 1559 const int scalarSize = glu::getDataTypeScalarSize(dstEntry.type); in copyBufferVarData() local 1607 …DE_ASSERT((deIntptr)(srcElemPtr + scalarSize*compSize) - (deIntptr)srcBlockPtr.ptr <= (deIntptr)sr… in copyBufferVarData() 1608 …DE_ASSERT((deIntptr)(dstElemPtr + scalarSize*compSize) - (deIntptr)dstBlockPtr.ptr <= (deIntptr)ds… in copyBufferVarData() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/ |
D | vktShaderLibrary.cpp | 665 const int scalarSize = getDataTypeScalarSize(basicType); in copyToLayout() local 667 …nst int numComps = isDataTypeMatrix(basicType) ? getDataTypeMatrixNumRows(basicType) : scalarSize; in copyToLayout() 669 DE_ASSERT(size_t((arrayNdx+1)*scalarSize) <= value.elements.size()); in copyToLayout() 677 …const deUint32 data = value.elements[arrayNdx*scalarSize + vecNdx*numComps + compNdx].bool32 ? ~0u… in copyToLayout() 689 &value.elements[arrayNdx*scalarSize + vecNdx*numComps], in copyToLayout() 924 vk::VkFormat getVecFormat (DataType scalarType, int scalarSize) in getVecFormat() argument 937 return de::getSizedArrayElement<4>(vecFmts, scalarSize-1); in getVecFormat() 949 return de::getSizedArrayElement<4>(vecFmts, scalarSize-1); in getVecFormat() 961 return de::getSizedArrayElement<4>(vecFmts, scalarSize-1); in getVecFormat() 973 return de::getSizedArrayElement<4>(vecFmts, scalarSize-1); in getVecFormat()
|
/external/deqp/external/vulkancts/modules/vulkan/ubo/ |
D | vktUniformBlockCase.cpp | 746 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local 749 int vecSize = scalarSize / numVecs; in generateValue() 753 DE_ASSERT(scalarSize%numVecs == 0); in generateValue() 1234 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValueSrc() local 1239 if (scalarSize > 1) in generateValueSrc() 1266 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in generateValueSrc() 1290 if (scalarSize > 1) in generateValueSrc() 1317 int scalarSize = glu::getDataTypeScalarSize(entry.type); in writeMatrixTypeSrc() local 1321 if (scalarSize > 1) in writeMatrixTypeSrc()
|
/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
D | vktTessellationUserDefinedIO.cpp | 158 const int scalarSize = glu::getDataTypeScalarSize(type); in glslAssignBasicTypeObject() local 166 for (int i = 0; i < scalarSize; ++i) in glslAssignBasicTypeObject() 178 const int scalarSize = glu::getDataTypeScalarSize(type); in glslCheckBasicTypeObject() local 186 for (int i = 0; i < scalarSize; ++i) in glslCheckBasicTypeObject()
|