Home
last modified time | relevance | path

Searched refs:scalarSize (Results 1 – 18 of 18) sorted by relevance

/external/deqp/modules/gles31/functional/
Des31fShaderCommonFunctionTests.cpp319 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() local
323 curScalarOffset += scalarSize*numValues; in getInputOutputPointers()
525 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local
528 …lars(rnd, floatRanges[precision].x(), floatRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues()
530 …mScalars(rnd, intRanges[precision].x(), intRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues()
537 const int scalarSize = glu::getDataTypeScalarSize(type); in compare() local
544 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare()
560 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare()
607 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local
612 std::fill((float*)values[0], (float*)values[0] + scalarSize, +1.0f); in getInputValues()
[all …]
Des31fShaderIntegerFunctionTests.cpp139 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 …]
Des31fShaderSharedVarTests.cpp191 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 …]
Des31fSSBOLayoutCase.cpp734 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()
1479 const int scalarSize = glu::getDataTypeScalarSize(dstEntry.type); in copyBufferVarData() local
1526 …DE_ASSERT((deIntptr)(srcElemPtr + scalarSize*compSize) - (deIntptr)srcBlockPtr.ptr <= (deIntptr)sr… in copyBufferVarData()
1527 …DE_ASSERT((deIntptr)(dstElemPtr + scalarSize*compSize) - (deIntptr)dstBlockPtr.ptr <= (deIntptr)ds… in copyBufferVarData()
[all …]
Des31fTessellationTests.cpp5832 const int scalarSize = glu::getDataTypeScalarSize(type); in glslAssignBasicTypeObject() local
5840 for (int i = 0; i < scalarSize; i++) in glslAssignBasicTypeObject()
5853 const int scalarSize = glu::getDataTypeScalarSize(type); in glslCheckBasicTypeObject() local
5861 for (int i = 0; i < scalarSize; i++) in glslCheckBasicTypeObject()
/external/deqp/modules/gles3/functional/
Des3fShaderCommonFunctionTests.cpp246 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 …]
Des3fFragmentOutputTests.cpp782 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()
Des3fTransformFeedbackTests.cpp401 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/modules/gles2/scripts/
Dgen-swizzles.py86 scalarSize = getDataTypeScalarSize(dataType) variable
230 scalarSize = getDataTypeScalarSize(dataType) variable
233 for swizzleIndices in getSwizzlesForWidth(scalarSize):
/external/deqp/modules/gles3/scripts/
Dgen-swizzles.py86 scalarSize = getDataTypeScalarSize(dataType) variable
234 scalarSize = getDataTypeScalarSize(dataType) variable
237 for swizzleIndices in getSwizzlesForWidth(scalarSize):
/external/deqp/modules/glshared/
DglsShaderLibraryCase.cpp534 const int scalarSize = getDataTypeScalarSize(val.dataType); in setUniformValue() local
536 const int elemNdx = (val.arrayLength == 1) ? (0) : (arrayNdx * scalarSize); in setUniformValue()
901 const int scalarSize = getDataTypeScalarSize(val.dataType); in execute() local
907 scalars.resize(numVerticesPerDraw * scalarSize); in execute()
911 for (int ndx = 0; ndx < scalarSize; ndx++) in execute()
912 scalars[repNdx*scalarSize + ndx] = val.elements[arrayNdx*scalarSize + ndx].float32; in execute()
919 for (int ndx = 0; ndx < scalarSize; ndx++) in execute()
921 float v = (float)val.elements[arrayNdx*scalarSize + ndx].int32; in execute()
922 DE_ASSERT(val.elements[arrayNdx*scalarSize + ndx].int32 == (int)v); in execute()
923 scalars[repNdx*scalarSize + ndx] = v; in execute()
[all …]
DglsShaderExecUtil.cpp547 const int scalarSize = symbol.varType.getScalarSize(); in execute() local
550 …deMemcpy((deUint32*)dstPtr + scalarSize*ndx, (const deUint8*)srcPtr + curOffset + ndx*outputBuffer… in execute()
552 curOffset += scalarSize*sizeof(deUint32); in execute()
1016 const int scalarSize = glu::getDataTypeScalarSize(basicType); in copyToBuffer() local
1018 const int numComps = scalarSize / numVecs; in copyToBuffer()
1024 const int srcOffset = sizeof(deUint32)*(elemNdx*scalarSize + vecNdx*numComps); in copyToBuffer()
1043 const int scalarSize = glu::getDataTypeScalarSize(basicType); in copyFromBuffer() local
1045 const int numComps = scalarSize / numVecs; in copyFromBuffer()
1052 const int dstOffset = sizeof(deUint32)*(elemNdx*scalarSize + vecNdx*numComps); in copyFromBuffer()
DglsShaderLibrary.cpp732 int scalarSize = getDataTypeScalarSize(expectedDataType); in parseValueElement() local
737 if (scalarSize > 1) in parseValueElement()
744 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in parseValueElement()
781 if (scalarNdx != (scalarSize - 1)) in parseValueElement()
785 if (scalarSize > 1) in parseValueElement()
789 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in parseValueElement()
DglsUniformBlockCase.cpp627 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()
/external/deqp/framework/randomshaders/
DrsgVariableValue.hpp166 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/modules/gles2/performance/
Des2pShaderOperatorTests.cpp1783 const int scalarSize = glu::getDataTypeScalarSize(paramType); in setGeneralUniforms() local
1791 uniformNfv(gl, scalarSize, location, 1, &values[0]); in setGeneralUniforms()
1798 uniformNiv(gl, scalarSize, location, 1, &values[0]); in setGeneralUniforms()
1805 uniformNiv(gl, scalarSize, location, 1, &values[0]); in setGeneralUniforms()
/external/deqp/modules/gles3/performance/
Des3pShaderOperatorTests.cpp1791 const int scalarSize = glu::getDataTypeScalarSize(paramType); in setGeneralUniforms() local
1799 uniformNfv(gl, scalarSize, location, 1, &values[0]); in setGeneralUniforms()
1806 uniformNiv(gl, scalarSize, location, 1, &values[0]); in setGeneralUniforms()
1813 uniformNiv(gl, scalarSize, location, 1, &values[0]); in setGeneralUniforms()
/external/deqp/framework/opengl/simplereference/
DsglrReferenceContext.cpp3770 const int scalarSize = glu::getDataTypeScalarSize(type); in uniformv() local
3771 DE_ASSERT(scalarSize*sizeof(deUint32) <= sizeof(uniforms[location].value)); in uniformv()
3772 deMemcpy(&uniforms[location].value, v, scalarSize*(int)sizeof(deUint32)); in uniformv()