Home
last modified time | relevance | path

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

12

/third_party/vk-gl-cts/modules/gles31/functional/
Des31fShaderCommonFunctionTests.cpp308 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() local
312 curScalarOffset += scalarSize*numValues; in getInputOutputPointers()
486 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local
489 …lars(rnd, floatRanges[precision].x(), floatRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues()
491 …mScalars(rnd, intRanges[precision].x(), intRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues()
498 const int scalarSize = glu::getDataTypeScalarSize(type); in compare() local
505 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare()
521 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare()
568 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local
573 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()
345 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local
371 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in getInputValues()
373 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.cpp729 const int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local
736 const int vecSize = scalarSize / numVecs; in generateValue()
739 DE_ASSERT(scalarSize%numVecs == 0); in generateValue()
1010 const int scalarSize = glu::getDataTypeScalarSize(basicType); in generateImmScalarVectorSrc() local
1013 if (scalarSize > 1) in generateImmScalarVectorSrc()
1016 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in generateImmScalarVectorSrc()
1034 if (scalarSize > 1) in generateImmScalarVectorSrc()
1488 const int scalarSize = glu::getDataTypeScalarSize(dstEntry.type); in copyBufferVarData() local
1535 …DE_ASSERT((deIntptr)(srcElemPtr + scalarSize*compSize) - (deIntptr)srcBlockPtr.ptr <= (deIntptr)sr… in copyBufferVarData()
1536 …DE_ASSERT((deIntptr)(dstElemPtr + scalarSize*compSize) - (deIntptr)dstBlockPtr.ptr <= (deIntptr)ds… in copyBufferVarData()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fShaderCommonFunctionTests.cpp233 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() local
237 curScalarOffset += scalarSize*numValues; in getInputOutputPointers()
411 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local
414 …lars(rnd, floatRanges[precision].x(), floatRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues()
416 …mScalars(rnd, intRanges[precision].x(), intRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues()
423 const int scalarSize = glu::getDataTypeScalarSize(type); in compare() local
430 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare()
446 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare()
493 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local
498 std::fill((float*)values[0], (float*)values[0] + scalarSize, +1.0f); in getInputValues()
[all …]
Des3fFragmentOutputTests.cpp783 int scalarSize = glu::getDataTypeScalarSize(output.type); in iterate() local
798 gl.vertexAttribPointer(loc, scalarSize, glScalarType, GL_FALSE, 0, &inputs[curInVec][0]); in iterate()
800 gl.vertexAttribIPointer(loc, scalarSize, glScalarType, 0, &inputs[curInVec][0]); in iterate()
846 const int scalarSize = glu::getDataTypeScalarSize(output.type); in iterate() local
862 renderIntReference(viewportBuf, gridWidth, gridHeight, scalarSize, (const int*)inputData); in iterate()
864 renderFloatReference(viewportBuf, gridWidth, gridHeight, scalarSize, (const float*)inputData); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderIntegerFunctionTests.cpp141 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()
415 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local
441 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in getInputValues()
443 in0[easyCaseNdx*scalarSize + compNdx] = easyCases[easyCaseNdx].x & integerMask; in getInputValues()
[all …]
DvktShaderCommonFunctionTests.cpp229 const int scalarSize = var.varType.getScalarSize(); in getInputOutputPointers() local
234 curScalarOffset += scalarSize*numValues*componentBytes; in getInputOutputPointers()
513 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local
517 …mScalars(rnd, intRanges[precision].x(), intRanges[precision].y(), values[0], numValues*scalarSize); in getInputValues()
523 const int scalarSize = glu::getDataTypeScalarSize(type); in compare() local
527 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare()
581 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues() local
585 std::fill((int*)values[0] + scalarSize*0, (int*)values[0] + scalarSize*1, +1); in getInputValues()
586 std::fill((int*)values[0] + scalarSize*1, (int*)values[0] + scalarSize*2, -1); in getInputValues()
587 std::fill((int*)values[0] + scalarSize*2, (int*)values[0] + scalarSize*3, 0); in getInputValues()
[all …]
DvktShaderExecutor.cpp1778 const int scalarSize = glu::getDataTypeScalarSize(basicType); in copyToBuffer() local
1780 const int numComps = scalarSize / numVecs; in copyToBuffer()
1787 const int srcOffset = size * (elemNdx * scalarSize + vecNdx * numComps); in copyToBuffer()
1819 const int scalarSize = glu::getDataTypeScalarSize(basicType); in copyFromBuffer() local
1821 const int numComps = scalarSize / numVecs; in copyFromBuffer()
1829 const int dstOffset = size * (elemNdx * scalarSize + vecNdx * numComps); in copyFromBuffer()
2013 …st int operationNdx, const glu::DataType type, const std::string& outputType, const int scalarSize) in scalarComparison() argument
2061 for(int ndx = 0; ndx < scalarSize; ++ndx) in scalarComparison()
2171 const int scalarSize = symbol.varType.getScalarSize(); in generateSpirv() local
2172 …const int memberSize = (scalarSize + ((scalarSize == 3) ? 1 : 0)) * (isDataTypeDoubleType(symbol.… in generateSpirv()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcShaderLibraryCase.cpp126 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 …]
DglcShaderLibrary.cpp743 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()
DglcUniformBlockCase.cpp599 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local
604 int vecSize = scalarSize / numVecs; in generateValue()
608 DE_ASSERT(scalarSize % numVecs == 0); in generateValue()
860 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValueSrc() local
865 if (scalarSize > 1) in generateValueSrc()
892 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in generateValueSrc()
919 if (scalarSize > 1) in generateValueSrc()
1220 int scalarSize = glu::getDataTypeScalarSize(dstEntry.type); in copyUniformData() local
1249 deMemcpy(dstElemPtr, srcElemPtr, scalarSize * compSize); in copyUniformData()
/third_party/vk-gl-cts/modules/gles3/scripts/
Dgen-swizzles.py108 scalarSize = getDataTypeScalarSize(dataType) variable
256 scalarSize = getDataTypeScalarSize(dataType) variable
259 for swizzleIndices in getSwizzlesForWidth(scalarSize):
Dgen-swizzle-math-operations.py165 scalarSize = getDataTypeScalarSize(dataType) variable
168 for swizzleIndices in getSwizzlesForWidth(scalarSize):
/third_party/vk-gl-cts/modules/gles2/scripts/
Dgen-swizzles.py108 scalarSize = getDataTypeScalarSize(dataType) variable
252 scalarSize = getDataTypeScalarSize(dataType) variable
255 for swizzleIndices in getSwizzlesForWidth(scalarSize):
/third_party/vk-gl-cts/modules/glshared/
DglsShaderLibraryCase.cpp780 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()
1195 const int scalarSize = getDataTypeScalarSize(dataType); in execute() local
1199 scalars.resize(numVerticesPerDraw * scalarSize); in execute()
1203 for (int ndx = 0; ndx < scalarSize; ndx++) in execute()
1204 scalars[repNdx*scalarSize + ndx] = val.elements[arrayNdx*scalarSize + ndx].float32; in execute()
1211 for (int ndx = 0; ndx < scalarSize; ndx++) in execute()
1213 float v = (float)val.elements[arrayNdx*scalarSize + ndx].int32; in execute()
1214 DE_ASSERT(val.elements[arrayNdx*scalarSize + ndx].int32 == (int)v); in execute()
[all …]
DglsUniformBlockCase.cpp628 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local
631 int vecSize = scalarSize / numVecs; in generateValue()
635 DE_ASSERT(scalarSize%numVecs == 0); in generateValue()
948 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValueSrc() local
953 if (scalarSize > 1) in generateValueSrc()
980 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in generateValueSrc()
999 if (scalarSize > 1) in generateValueSrc()
1277 int scalarSize = glu::getDataTypeScalarSize(dstEntry.type); in copyUniformData() local
1304 deMemcpy(dstElemPtr, srcElemPtr, scalarSize*compSize); in copyUniformData()
/third_party/vk-gl-cts/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 =()
/third_party/vk-gl-cts/framework/opengl/
DgluShaderLibrary.cpp927 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()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackFuzzLayoutCase.cpp464 const int scalarSize = glu::getDataTypeScalarSize(entry.type); in createMask() local
467 const int vecSize = scalarSize / numVecs; in createMask()
471 DE_ASSERT(scalarSize%numVecs == 0); in createMask()
907 const int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local
910 const int vecSize = scalarSize / numVecs; in generateValue()
914 DE_ASSERT(scalarSize%numVecs == 0); in generateValue()
1208 const int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValueSrc() local
1213 if (scalarSize > 1) in generateValueSrc()
1242 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in generateValueSrc()
1260 if (scalarSize > 1) in generateValueSrc()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOLayoutCase.cpp769 const int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local
776 const int vecSize = scalarSize / numVecs; in generateValue()
779 DE_ASSERT(scalarSize%numVecs == 0); in generateValue()
1099 const int scalarSize = glu::getDataTypeScalarSize(basicType); in generateImmScalarVectorSrc() local
1102 if (scalarSize > 1) in generateImmScalarVectorSrc()
1105 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in generateImmScalarVectorSrc()
1128 if (scalarSize > 1) in generateImmScalarVectorSrc()
1508 const int scalarSize = glu::getDataTypeScalarSize(dstEntry.type); in copyBufferVarData() local
1556 …DE_ASSERT((deIntptr)(srcElemPtr + scalarSize*compSize) - (deIntptr)srcBlockPtr.ptr <= (deIntptr)sr… in copyBufferVarData()
1557 …DE_ASSERT((deIntptr)(dstElemPtr + scalarSize*compSize) - (deIntptr)dstBlockPtr.ptr <= (deIntptr)ds… in copyBufferVarData()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/
DvktShaderLibrary.cpp665 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()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory_model/
DvktMemoryModelSharedLayoutCase.cpp93 const int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local
97 const int vecSize = scalarSize / numVecs; in generateValue()
99 DE_ASSERT(scalarSize % numVecs == 0); in generateValue()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/
DvktUniformBlockCase.cpp741 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValue() local
744 int vecSize = scalarSize / numVecs; in generateValue()
748 DE_ASSERT(scalarSize%numVecs == 0); in generateValue()
1201 int scalarSize = glu::getDataTypeScalarSize(entry.type); in generateValueSrc() local
1206 if (scalarSize > 1) in generateValueSrc()
1233 for (int scalarNdx = 0; scalarNdx < scalarSize; scalarNdx++) in generateValueSrc()
1257 if (scalarSize > 1) in generateValueSrc()
1284 int scalarSize = glu::getDataTypeScalarSize(entry.type); in writeMatrixTypeSrc() local
1288 if (scalarSize > 1) in writeMatrixTypeSrc()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationUserDefinedIO.cpp158 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()

12