• Home
  • Raw
  • Download

Lines Matching refs:DrawTestSpec

79 static GLenum targetToGL (DrawTestSpec::Target target)  in targetToGL()
87 return de::getSizedArrayElement<DrawTestSpec::TARGET_LAST>(targets, (int)target); in targetToGL()
90 static GLenum usageToGL (DrawTestSpec::Usage usage) in usageToGL()
108 return de::getSizedArrayElement<DrawTestSpec::USAGE_LAST>(usages, (int)usage); in usageToGL()
111 static GLenum inputTypeToGL (DrawTestSpec::InputType type) in inputTypeToGL()
130 return de::getSizedArrayElement<DrawTestSpec::INPUTTYPE_LAST>(types, (int)type); in inputTypeToGL()
133 static std::string outputTypeToGLType (DrawTestSpec::OutputType type) in outputTypeToGLType()
154 return de::getSizedArrayElement<DrawTestSpec::OUTPUTTYPE_LAST>(types, (int)type); in outputTypeToGLType()
157 static GLenum primitiveToGL (DrawTestSpec::Primitive primitive) in primitiveToGL()
174 return de::getSizedArrayElement<DrawTestSpec::PRIMITIVE_LAST>(primitives, (int)primitive); in primitiveToGL()
177 static deUint32 indexTypeToGL (DrawTestSpec::IndexType indexType) in indexTypeToGL()
186 return de::getSizedArrayElement<DrawTestSpec::INDEXTYPE_LAST>(indexTypes, (int)indexType); in indexTypeToGL()
189 static bool inputTypeIsFloatType (DrawTestSpec::InputType type) in inputTypeIsFloatType()
191 if (type == DrawTestSpec::INPUTTYPE_FLOAT) in inputTypeIsFloatType()
193 if (type == DrawTestSpec::INPUTTYPE_FIXED) in inputTypeIsFloatType()
195 if (type == DrawTestSpec::INPUTTYPE_HALF) in inputTypeIsFloatType()
197 if (type == DrawTestSpec::INPUTTYPE_DOUBLE) in inputTypeIsFloatType()
202 static bool outputTypeIsFloatType (DrawTestSpec::OutputType type) in outputTypeIsFloatType()
204 if (type == DrawTestSpec::OUTPUTTYPE_FLOAT in outputTypeIsFloatType()
205 || type == DrawTestSpec::OUTPUTTYPE_VEC2 in outputTypeIsFloatType()
206 || type == DrawTestSpec::OUTPUTTYPE_VEC3 in outputTypeIsFloatType()
207 || type == DrawTestSpec::OUTPUTTYPE_VEC4) in outputTypeIsFloatType()
213 static bool outputTypeIsIntType (DrawTestSpec::OutputType type) in outputTypeIsIntType()
215 if (type == DrawTestSpec::OUTPUTTYPE_INT in outputTypeIsIntType()
216 || type == DrawTestSpec::OUTPUTTYPE_IVEC2 in outputTypeIsIntType()
217 || type == DrawTestSpec::OUTPUTTYPE_IVEC3 in outputTypeIsIntType()
218 || type == DrawTestSpec::OUTPUTTYPE_IVEC4) in outputTypeIsIntType()
224 static bool outputTypeIsUintType (DrawTestSpec::OutputType type) in outputTypeIsUintType()
226 if (type == DrawTestSpec::OUTPUTTYPE_UINT in outputTypeIsUintType()
227 || type == DrawTestSpec::OUTPUTTYPE_UVEC2 in outputTypeIsUintType()
228 || type == DrawTestSpec::OUTPUTTYPE_UVEC3 in outputTypeIsUintType()
229 || type == DrawTestSpec::OUTPUTTYPE_UVEC4) in outputTypeIsUintType()
235 static size_t getElementCount (DrawTestSpec::Primitive primitive, size_t primitiveCount) in getElementCount()
239 case DrawTestSpec::PRIMITIVE_POINTS: return primitiveCount; in getElementCount()
240 case DrawTestSpec::PRIMITIVE_TRIANGLES: return primitiveCount * 3; in getElementCount()
241 case DrawTestSpec::PRIMITIVE_TRIANGLE_FAN: return primitiveCount + 2; in getElementCount()
242 case DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP: return primitiveCount + 2; in getElementCount()
243 case DrawTestSpec::PRIMITIVE_LINES: return primitiveCount * 2; in getElementCount()
244 case DrawTestSpec::PRIMITIVE_LINE_STRIP: return primitiveCount + 1; in getElementCount()
245 case DrawTestSpec::PRIMITIVE_LINE_LOOP: return (primitiveCount==1) ? (2) : (primitiveCount); in getElementCount()
246 case DrawTestSpec::PRIMITIVE_LINES_ADJACENCY: return primitiveCount * 4; in getElementCount()
247 case DrawTestSpec::PRIMITIVE_LINE_STRIP_ADJACENCY: return primitiveCount + 3; in getElementCount()
248 case DrawTestSpec::PRIMITIVE_TRIANGLES_ADJACENCY: return primitiveCount * 6; in getElementCount()
249 case DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP_ADJACENCY: return primitiveCount * 2 + 4; in getElementCount()
266 static MethodInfo getMethodInfo (gls::DrawTestSpec::DrawMethod method) in getMethodInfo()
283 return de::getSizedArrayElement<DrawTestSpec::DRAWMETHOD_LAST>(infos, (int)method); in getMethodInfo()
292 static bool checkSpecsShaderCompatible (const DrawTestSpec& a, const DrawTestSpec& b) in checkSpecsShaderCompatible()
500 GLValue (void) : type(DrawTestSpec::INPUTTYPE_LAST) {} in GLValue()
501 explicit GLValue (Float value) : type(DrawTestSpec::INPUTTYPE_FLOAT), fl(value) {} in GLValue()
502 explicit GLValue (Fixed value) : type(DrawTestSpec::INPUTTYPE_FIXED), fi(value) {} in GLValue()
503 explicit GLValue (Byte value) : type(DrawTestSpec::INPUTTYPE_BYTE), b(value) {} in GLValue()
504 explicit GLValue (Ubyte value) : type(DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE), ub(value) {} in GLValue()
505 explicit GLValue (Short value) : type(DrawTestSpec::INPUTTYPE_SHORT), s(value) {} in GLValue()
506 explicit GLValue (Ushort value) : type(DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT), us(value) {} in GLValue()
507 explicit GLValue (Int value) : type(DrawTestSpec::INPUTTYPE_INT), i(value) {} in GLValue()
508 explicit GLValue (Uint value) : type(DrawTestSpec::INPUTTYPE_UNSIGNED_INT), ui(value) {} in GLValue()
509 explicit GLValue (Half value) : type(DrawTestSpec::INPUTTYPE_HALF), h(value) {} in GLValue()
510 explicit GLValue (Double value) : type(DrawTestSpec::INPUTTYPE_DOUBLE), d(value) {} in GLValue()
514 static GLValue getMaxValue (DrawTestSpec::InputType type);
515 static GLValue getMinValue (DrawTestSpec::InputType type);
517 DrawTestSpec::InputType type;
551 case DrawTestSpec::INPUTTYPE_FLOAT: in toFloat()
555 case DrawTestSpec::INPUTTYPE_BYTE: in toFloat()
559 case DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE: in toFloat()
563 case DrawTestSpec::INPUTTYPE_SHORT: in toFloat()
567 case DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT: in toFloat()
571 case DrawTestSpec::INPUTTYPE_FIXED: in toFloat()
579 case DrawTestSpec::INPUTTYPE_UNSIGNED_INT: in toFloat()
583 case DrawTestSpec::INPUTTYPE_INT: in toFloat()
587 case DrawTestSpec::INPUTTYPE_HALF: in toFloat()
591 case DrawTestSpec::INPUTTYPE_DOUBLE: in toFloat()
602 GLValue GLValue::getMaxValue (DrawTestSpec::InputType type) in getMaxValue()
604 GLValue rangesHi[(int)DrawTestSpec::INPUTTYPE_LAST]; in getMaxValue()
606 rangesHi[(int)DrawTestSpec::INPUTTYPE_FLOAT] = GLValue(Float::create(127.0f)); in getMaxValue()
607 rangesHi[(int)DrawTestSpec::INPUTTYPE_DOUBLE] = GLValue(Double::create(127.0f)); in getMaxValue()
608 rangesHi[(int)DrawTestSpec::INPUTTYPE_BYTE] = GLValue(Byte::create(127)); in getMaxValue()
609 rangesHi[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(255)); in getMaxValue()
610 rangesHi[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(65530)); in getMaxValue()
611 rangesHi[(int)DrawTestSpec::INPUTTYPE_SHORT] = GLValue(Short::create(32760)); in getMaxValue()
612 rangesHi[(int)DrawTestSpec::INPUTTYPE_FIXED] = GLValue(Fixed::create(32760)); in getMaxValue()
613 rangesHi[(int)DrawTestSpec::INPUTTYPE_INT] = GLValue(Int::create(2147483647)); in getMaxValue()
614 rangesHi[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(4294967295u)); in getMaxValue()
615 rangesHi[(int)DrawTestSpec::INPUTTYPE_HALF] = GLValue(Half::create(256.0f)); in getMaxValue()
620 GLValue GLValue::getMinValue (DrawTestSpec::InputType type) in getMinValue()
622 GLValue rangesLo[(int)DrawTestSpec::INPUTTYPE_LAST]; in getMinValue()
624 rangesLo[(int)DrawTestSpec::INPUTTYPE_FLOAT] = GLValue(Float::create(-127.0f)); in getMinValue()
625 rangesLo[(int)DrawTestSpec::INPUTTYPE_DOUBLE] = GLValue(Double::create(-127.0f)); in getMinValue()
626 rangesLo[(int)DrawTestSpec::INPUTTYPE_BYTE] = GLValue(Byte::create(-127)); in getMinValue()
627 rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(0)); in getMinValue()
628 rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(0)); in getMinValue()
629 rangesLo[(int)DrawTestSpec::INPUTTYPE_SHORT] = GLValue(Short::create(-32760)); in getMinValue()
630 rangesLo[(int)DrawTestSpec::INPUTTYPE_FIXED] = GLValue(Fixed::create(-32760)); in getMinValue()
631 rangesLo[(int)DrawTestSpec::INPUTTYPE_INT] = GLValue(Int::create(-2147483647)); in getMinValue()
632 rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(0)); in getMinValue()
633 rangesLo[(int)DrawTestSpec::INPUTTYPE_HALF] = GLValue(Half::create(-256.0f)); in getMinValue()
641 …ruct GLValueTypeTraits<GLValue::Float> { static const DrawTestSpec::InputType Type = DrawTestSpec
642 …ruct GLValueTypeTraits<GLValue::Double> { static const DrawTestSpec::InputType Type = DrawTestSpec
643 …truct GLValueTypeTraits<GLValue::Byte> { static const DrawTestSpec::InputType Type = DrawTestSpec
644 …ruct GLValueTypeTraits<GLValue::Ubyte> { static const DrawTestSpec::InputType Type = DrawTestSpec
645 …ruct GLValueTypeTraits<GLValue::Ushort> { static const DrawTestSpec::InputType Type = DrawTestSpec
646 …ruct GLValueTypeTraits<GLValue::Short> { static const DrawTestSpec::InputType Type = DrawTestSpec
647 …ruct GLValueTypeTraits<GLValue::Fixed> { static const DrawTestSpec::InputType Type = DrawTestSpec
648 …struct GLValueTypeTraits<GLValue::Int> { static const DrawTestSpec::InputType Type = DrawTestSpec
649 …truct GLValueTypeTraits<GLValue::Uint> { static const DrawTestSpec::InputType Type = DrawTestSpec
650 …truct GLValueTypeTraits<GLValue::Half> { static const DrawTestSpec::InputType Type = DrawTestSpec
894 AttributeArray (DrawTestSpec::Storage storage, sglr::Context& context);
897 …void data (DrawTestSpec::Target target, size_t size, const char* data, DrawTestSpec::Usage…
898 … setupArray (bool bound, int offset, int size, DrawTestSpec::InputType inType, DrawTestSpec
900 void bindIndexArray (DrawTestSpec::Target storage);
903 DrawTestSpec::Target getTarget (void) const { return m_target; } in getTarget()
904 DrawTestSpec::InputType getInputType (void) const { return m_inputType; } in getInputType()
905 DrawTestSpec::OutputType getOutputType (void) const { return m_outputType; } in getOutputType()
906 DrawTestSpec::Storage getStorageType (void) const { return m_storage; } in getStorageType()
913 DrawTestSpec::Storage m_storage;
921 DrawTestSpec::Target m_target;
922 DrawTestSpec::InputType m_inputType;
923 DrawTestSpec::OutputType m_outputType;
933 AttributeArray::AttributeArray (DrawTestSpec::Storage storage, sglr::Context& context) in AttributeArray()
941 , m_target (DrawTestSpec::TARGET_ARRAY) in AttributeArray()
942 , m_inputType (DrawTestSpec::INPUTTYPE_FLOAT) in AttributeArray()
943 , m_outputType (DrawTestSpec::OUTPUTTYPE_VEC4) in AttributeArray()
951 if (m_storage == DrawTestSpec::STORAGE_BUFFER) in AttributeArray()
960 if (m_storage == DrawTestSpec::STORAGE_BUFFER) in ~AttributeArray()
965 else if (m_storage == DrawTestSpec::STORAGE_USER) in ~AttributeArray()
971 void AttributeArray::data (DrawTestSpec::Target target, size_t size, const char* ptr, DrawTestSpec:… in data()
976 if (m_storage == DrawTestSpec::STORAGE_BUFFER) in data()
984 else if (m_storage == DrawTestSpec::STORAGE_USER) in data()
996 …Array::setupArray (bool bound, int offset, int size, DrawTestSpec::InputType inputType, DrawTestSp… in setupArray()
1017 case DrawTestSpec::INPUTTYPE_FLOAT: in bindAttribute()
1031 case DrawTestSpec::INPUTTYPE_INT: in bindAttribute()
1037 case DrawTestSpec::INPUTTYPE_UNSIGNED_INT: in bindAttribute()
1052 if (m_storage == DrawTestSpec::STORAGE_BUFFER) in bindAttribute()
1059 else if (m_storage == DrawTestSpec::STORAGE_USER) in bindAttribute()
1106 void AttributeArray::bindIndexArray (DrawTestSpec::Target target) in bindIndexArray()
1108 if (m_storage == DrawTestSpec::STORAGE_USER) in bindIndexArray()
1111 else if (m_storage == DrawTestSpec::STORAGE_BUFFER) in bindIndexArray()
1131 static rr::GenericVecType mapOutputType (const DrawTestSpec::OutputType& type);
1132 static int getComponentCount (const DrawTestSpec::OutputType& type);
1289 case (DrawTestSpec::OUTPUTTYPE_FLOAT): in genVertexSource()
1290 case (DrawTestSpec::OUTPUTTYPE_INT): in genVertexSource()
1291 case (DrawTestSpec::OUTPUTTYPE_UINT): in genVertexSource()
1296 case (DrawTestSpec::OUTPUTTYPE_VEC2): in genVertexSource()
1297 case (DrawTestSpec::OUTPUTTYPE_IVEC2): in genVertexSource()
1298 case (DrawTestSpec::OUTPUTTYPE_UVEC2): in genVertexSource()
1303 case (DrawTestSpec::OUTPUTTYPE_VEC3): in genVertexSource()
1304 case (DrawTestSpec::OUTPUTTYPE_IVEC3): in genVertexSource()
1305 case (DrawTestSpec::OUTPUTTYPE_UVEC3): in genVertexSource()
1311 case (DrawTestSpec::OUTPUTTYPE_VEC4): in genVertexSource()
1312 case (DrawTestSpec::OUTPUTTYPE_IVEC4): in genVertexSource()
1313 case (DrawTestSpec::OUTPUTTYPE_UVEC4): in genVertexSource()
1328 case (DrawTestSpec::OUTPUTTYPE_FLOAT): in genVertexSource()
1329 case (DrawTestSpec::OUTPUTTYPE_INT): in genVertexSource()
1330 case (DrawTestSpec::OUTPUTTYPE_UINT): in genVertexSource()
1335 case (DrawTestSpec::OUTPUTTYPE_VEC2): in genVertexSource()
1336 case (DrawTestSpec::OUTPUTTYPE_IVEC2): in genVertexSource()
1337 case (DrawTestSpec::OUTPUTTYPE_UVEC2): in genVertexSource()
1342 case (DrawTestSpec::OUTPUTTYPE_VEC3): in genVertexSource()
1343 case (DrawTestSpec::OUTPUTTYPE_IVEC3): in genVertexSource()
1344 case (DrawTestSpec::OUTPUTTYPE_UVEC3): in genVertexSource()
1349 case (DrawTestSpec::OUTPUTTYPE_VEC4): in genVertexSource()
1350 case (DrawTestSpec::OUTPUTTYPE_IVEC4): in genVertexSource()
1351 case (DrawTestSpec::OUTPUTTYPE_UVEC4): in genVertexSource()
1434 rr::GenericVecType DrawTestShaderProgram::mapOutputType (const DrawTestSpec::OutputType& type) in mapOutputType()
1438 case (DrawTestSpec::OUTPUTTYPE_FLOAT): in mapOutputType()
1439 case (DrawTestSpec::OUTPUTTYPE_VEC2): in mapOutputType()
1440 case (DrawTestSpec::OUTPUTTYPE_VEC3): in mapOutputType()
1441 case (DrawTestSpec::OUTPUTTYPE_VEC4): in mapOutputType()
1444 case (DrawTestSpec::OUTPUTTYPE_INT): in mapOutputType()
1445 case (DrawTestSpec::OUTPUTTYPE_IVEC2): in mapOutputType()
1446 case (DrawTestSpec::OUTPUTTYPE_IVEC3): in mapOutputType()
1447 case (DrawTestSpec::OUTPUTTYPE_IVEC4): in mapOutputType()
1450 case (DrawTestSpec::OUTPUTTYPE_UINT): in mapOutputType()
1451 case (DrawTestSpec::OUTPUTTYPE_UVEC2): in mapOutputType()
1452 case (DrawTestSpec::OUTPUTTYPE_UVEC3): in mapOutputType()
1453 case (DrawTestSpec::OUTPUTTYPE_UVEC4): in mapOutputType()
1462 int DrawTestShaderProgram::getComponentCount (const DrawTestSpec::OutputType& type) in getComponentCount()
1466 case (DrawTestSpec::OUTPUTTYPE_FLOAT): in getComponentCount()
1467 case (DrawTestSpec::OUTPUTTYPE_INT): in getComponentCount()
1468 case (DrawTestSpec::OUTPUTTYPE_UINT): in getComponentCount()
1471 case (DrawTestSpec::OUTPUTTYPE_VEC2): in getComponentCount()
1472 case (DrawTestSpec::OUTPUTTYPE_IVEC2): in getComponentCount()
1473 case (DrawTestSpec::OUTPUTTYPE_UVEC2): in getComponentCount()
1476 case (DrawTestSpec::OUTPUTTYPE_VEC3): in getComponentCount()
1477 case (DrawTestSpec::OUTPUTTYPE_IVEC3): in getComponentCount()
1478 case (DrawTestSpec::OUTPUTTYPE_UVEC3): in getComponentCount()
1481 case (DrawTestSpec::OUTPUTTYPE_VEC4): in getComponentCount()
1482 case (DrawTestSpec::OUTPUTTYPE_IVEC4): in getComponentCount()
1483 case (DrawTestSpec::OUTPUTTYPE_UVEC4): in getComponentCount()
1514 …t seed, int elementCount, int componentCount, int offset, int stride, DrawTestSpec::InputType type…
1515 …static char* generateIndices (int seed, int elementCount, DrawTestSpec::IndexType type, int of…
1516 static rr::GenericVec4 generateAttributeValue (int seed, DrawTestSpec::InputType type);
1522 …t seed, int elementCount, int componentCount, int offset, int stride, DrawTestSpec::InputType type…
1528 …t seed, int elementCount, int componentCount, int offset, int stride, DrawTestSpec::InputType type) in generateArray()
1530 …if (type == DrawTestSpec::INPUTTYPE_INT_2_10_10_10 || type == DrawTestSpec::INPUTTYPE_UNSIGNED_INT… in generateArray()
1536 …t seed, int elementCount, int componentCount, int offset, int stride, DrawTestSpec::InputType type) in generateBasicArray()
1540 …case DrawTestSpec::INPUTTYPE_FLOAT: return createBasicArray<float, GLValue::Float> (seed, elem… in generateBasicArray()
1541 …case DrawTestSpec::INPUTTYPE_DOUBLE: return createBasicArray<double, GLValue::Double>(seed, ele… in generateBasicArray()
1542 …case DrawTestSpec::INPUTTYPE_SHORT: return createBasicArray<deInt16, GLValue::Short> (seed, ele… in generateBasicArray()
1543 …case DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT: return createBasicArray<deUint16, GLValue::Ushort>(se… in generateBasicArray()
1544 …case DrawTestSpec::INPUTTYPE_BYTE: return createBasicArray<deInt8, GLValue::Byte> (seed, eleme… in generateBasicArray()
1545 …case DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE: return createBasicArray<deUint8, GLValue::Ubyte> (see… in generateBasicArray()
1546 …case DrawTestSpec::INPUTTYPE_FIXED: return createBasicArray<deInt32, GLValue::Fixed> (seed, ele… in generateBasicArray()
1547 …case DrawTestSpec::INPUTTYPE_INT: return createBasicArray<deInt32, GLValue::Int> (seed, element… in generateBasicArray()
1548 …case DrawTestSpec::INPUTTYPE_UNSIGNED_INT: return createBasicArray<deUint32, GLValue::Uint> (seed… in generateBasicArray()
1549 …case DrawTestSpec::INPUTTYPE_HALF: return createBasicArray<deFloat16, GLValue::Half> (seed, ele… in generateBasicArray()
1650 char* RandomArrayGenerator::generateIndices (int seed, int elementCount, DrawTestSpec::IndexType ty… in generateIndices()
1656 case DrawTestSpec::INDEXTYPE_BYTE: in generateIndices()
1660 case DrawTestSpec::INDEXTYPE_SHORT: in generateIndices()
1664 case DrawTestSpec::INDEXTYPE_INT: in generateIndices()
1724 rr::GenericVec4 RandomArrayGenerator::generateAttributeValue (int seed, DrawTestSpec::InputType typ… in generateAttributeValue()
1730 case DrawTestSpec::INPUTTYPE_FLOAT: in generateAttributeValue()
1733 case DrawTestSpec::INPUTTYPE_INT: in generateAttributeValue()
1736 case DrawTestSpec::INPUTTYPE_UNSIGNED_INT: in generateAttributeValue()
1759 void newArray (DrawTestSpec::Storage storage);
1763 … render (DrawTestSpec::Primitive primitive, DrawTestSpec::DrawMethod drawMethod, int first…
1819 void AttributePack::newArray (DrawTestSpec::Storage storage) in newArray()
1842 …utePack::render (DrawTestSpec::Primitive primitive, DrawTestSpec::DrawMethod drawMethod, int first… in render()
1861 indexArray->bindIndexArray(DrawTestSpec::TARGET_ELEMENT_ARRAY); in render()
1879 if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWARRAYS) in render()
1884 else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INSTANCED) in render()
1889 else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS) in render()
1894 else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED) in render()
1899 else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED) in render()
1904 else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT) in render()
1949 else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT) in render()
1965 …DE_ASSERT(((const deUint8*)indexOffset - (const deUint8*)DE_NULL) % gls::DrawTestSpec::indexTypeSi… in render()
1969 …Luint)(((const deUint8*)indexOffset - (const deUint8*)DE_NULL) / gls::DrawTestSpec::indexTypeSize(… in render()
2000 else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_BASEVERTEX) in render()
2005 else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX) in render()
2010 else if (drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX) in render()
2041 DrawTestSpec::AttributeSpec DrawTestSpec::AttributeSpec::createAttributeArray (InputType inputType,… in createAttributeArray()
2043 DrawTestSpec::AttributeSpec spec; in createAttributeArray()
2060 DrawTestSpec::AttributeSpec DrawTestSpec::AttributeSpec::createDefaultAttribute (InputType inputTyp… in createDefaultAttribute()
2065 DrawTestSpec::AttributeSpec spec; in createDefaultAttribute()
2069 spec.storage = DrawTestSpec::STORAGE_LAST; in createDefaultAttribute()
2070 spec.usage = DrawTestSpec::USAGE_LAST; in createDefaultAttribute()
2082 DrawTestSpec::AttributeSpec::AttributeSpec (void) in AttributeSpec()
2084 inputType = DrawTestSpec::INPUTTYPE_LAST; in AttributeSpec()
2085 outputType = DrawTestSpec::OUTPUTTYPE_LAST; in AttributeSpec()
2086 storage = DrawTestSpec::STORAGE_LAST; in AttributeSpec()
2087 usage = DrawTestSpec::USAGE_LAST; in AttributeSpec()
2098 int DrawTestSpec::AttributeSpec::hash (void) const in hash()
2110 bool DrawTestSpec::AttributeSpec::valid (glu::ApiType ctxType) const in valid()
2112 …Float = inputType == DrawTestSpec::INPUTTYPE_FLOAT || inputType == DrawTestSpec::INPUTTYPE_FIX… in valid()
2113DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE || inputType == DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT || in… in valid()
2114 …= DrawTestSpec::INPUTTYPE_BYTE || inputType == DrawTestSpec::INPUTTYPE_SHORT || inputType == Draw… in valid()
2115 …ool inputTypePacked = inputType == DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || inputType… in valid()
2117DrawTestSpec::OUTPUTTYPE_FLOAT || outputType == DrawTestSpec::OUTPUTTYPE_VEC2 || outputType == Dr… in valid()
2118DrawTestSpec::OUTPUTTYPE_INT || outputType == DrawTestSpec::OUTPUTTYPE_IVEC2 || outputType == Dr… in valid()
2119DrawTestSpec::OUTPUTTYPE_UINT || outputType == DrawTestSpec::OUTPUTTYPE_UVEC2 || outputType == Dr… in valid()
2123 …if (inputType != DrawTestSpec::INPUTTYPE_INT && inputType != DrawTestSpec::INPUTTYPE_UNSIGNED_INT … in valid()
2126 if (inputType != DrawTestSpec::INPUTTYPE_FLOAT && componentCount != 4) in valid()
2130 if (inputType == DrawTestSpec::INPUTTYPE_INT && !outputTypeSignedInteger) in valid()
2132 if (inputType == DrawTestSpec::INPUTTYPE_UNSIGNED_INT && !outputTypeUnsignedInteger) in valid()
2164 …putType != DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10 && inputType != DrawTestSpec::INPUTTYPE… in valid()
2172 if (inputType != DrawTestSpec::INPUTTYPE_FLOAT && inputType != DrawTestSpec::INPUTTYPE_FIXED && in valid()
2173 …inputType != DrawTestSpec::INPUTTYPE_BYTE && inputType != DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE && in valid()
2174 … inputType != DrawTestSpec::INPUTTYPE_SHORT && inputType != DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT) in valid()
2194 if (!useDefaultAttribute && storage == DrawTestSpec::STORAGE_USER) in valid()
2201 bool DrawTestSpec::AttributeSpec::isBufferAligned (void) const in isBufferAligned()
2203 …t bool inputTypePacked = inputType == DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || inputType… in isBufferAligned()
2208 int dataTypeSize = gls::DrawTestSpec::inputTypeSize(inputType); in isBufferAligned()
2219 bool DrawTestSpec::AttributeSpec::isBufferStrideAligned (void) const in isBufferStrideAligned()
2221 …t bool inputTypePacked = inputType == DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || inputType… in isBufferStrideAligned()
2226 int dataTypeSize = gls::DrawTestSpec::inputTypeSize(inputType); in isBufferStrideAligned()
2237 std::string DrawTestSpec::targetToString(Target target) in targetToString()
2245 return de::getSizedArrayElement<DrawTestSpec::TARGET_LAST>(targets, (int)target); in targetToString()
2248 std::string DrawTestSpec::inputTypeToString(InputType type) in inputTypeToString()
2269 return de::getSizedArrayElement<DrawTestSpec::INPUTTYPE_LAST>(types, (int)type); in inputTypeToString()
2272 std::string DrawTestSpec::outputTypeToString(OutputType type) in outputTypeToString()
2293 return de::getSizedArrayElement<DrawTestSpec::OUTPUTTYPE_LAST>(types, (int)type); in outputTypeToString()
2296 std::string DrawTestSpec::usageTypeToString(Usage usage) in usageTypeToString()
2314 return de::getSizedArrayElement<DrawTestSpec::USAGE_LAST>(usages, (int)usage); in usageTypeToString()
2317 std::string DrawTestSpec::storageToString (Storage storage) in storageToString()
2325 return de::getSizedArrayElement<DrawTestSpec::STORAGE_LAST>(storages, (int)storage); in storageToString()
2328 std::string DrawTestSpec::primitiveToString (Primitive primitive) in primitiveToString()
2345 return de::getSizedArrayElement<DrawTestSpec::PRIMITIVE_LAST>(primitives, (int)primitive); in primitiveToString()
2348 std::string DrawTestSpec::indexTypeToString (IndexType type) in indexTypeToString()
2357 return de::getSizedArrayElement<DrawTestSpec::INDEXTYPE_LAST>(indexTypes, (int)type); in indexTypeToString()
2360 std::string DrawTestSpec::drawMethodToString (DrawTestSpec::DrawMethod method) in drawMethodToString()
2376 return de::getSizedArrayElement<DrawTestSpec::DRAWMETHOD_LAST>(methods, (int)method); in drawMethodToString()
2379 int DrawTestSpec::inputTypeSize (InputType type) in inputTypeSize()
2400 return de::getSizedArrayElement<DrawTestSpec::INPUTTYPE_LAST>(size, (int)type); in inputTypeSize()
2403 int DrawTestSpec::indexTypeSize (IndexType type) in indexTypeSize()
2412 return de::getSizedArrayElement<DrawTestSpec::INDEXTYPE_LAST>(size, (int)type); in indexTypeSize()
2415 std::string DrawTestSpec::getName (void) const in getName()
2441 << DrawTestSpec::inputTypeToString((DrawTestSpec::InputType)attrib.inputType) << "_" in getName()
2443 << DrawTestSpec::outputTypeToString(attrib.outputType) << "_"; in getName()
2448 << DrawTestSpec::storageToString(attrib.storage) << "_" in getName()
2451 << DrawTestSpec::inputTypeToString((DrawTestSpec::InputType)attrib.inputType); in getName()
2452 …if (attrib.inputType != DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10 && attrib.inputType != Dra… in getName()
2457 << DrawTestSpec::outputTypeToString(attrib.outputType) << "_" in getName()
2458 << DrawTestSpec::usageTypeToString(attrib.usage) << "_" in getName()
2465 << "index_" << DrawTestSpec::indexTypeToString(indexType) << "_" in getName()
2466 << DrawTestSpec::storageToString(indexStorage) << "_" in getName()
2477 case DrawTestSpec::PRIMITIVE_POINTS: in getName()
2480 case DrawTestSpec::PRIMITIVE_TRIANGLES: in getName()
2483 case DrawTestSpec::PRIMITIVE_TRIANGLE_FAN: in getName()
2486 case DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP: in getName()
2489 case DrawTestSpec::PRIMITIVE_LINES: in getName()
2492 case DrawTestSpec::PRIMITIVE_LINE_STRIP: in getName()
2495 case DrawTestSpec::PRIMITIVE_LINE_LOOP: in getName()
2498 case DrawTestSpec::PRIMITIVE_LINES_ADJACENCY: in getName()
2501 case DrawTestSpec::PRIMITIVE_LINE_STRIP_ADJACENCY: in getName()
2504 case DrawTestSpec::PRIMITIVE_TRIANGLES_ADJACENCY: in getName()
2507 case DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP_ADJACENCY: in getName()
2520 std::string DrawTestSpec::getDesc (void) const in getDesc()
2532 …<< "input datatype " << DrawTestSpec::inputTypeToString((DrawTestSpec::InputType)attrib.inputType)… in getDesc()
2534 << "used as " << DrawTestSpec::outputTypeToString(attrib.outputType) << ", "; in getDesc()
2540 << "Storage in " << DrawTestSpec::storageToString(attrib.storage) << ", " in getDesc()
2542 …<< "input datatype " << DrawTestSpec::inputTypeToString((DrawTestSpec::InputType)attrib.inputType)… in getDesc()
2545 << "used as " << DrawTestSpec::outputTypeToString(attrib.outputType) << ", " in getDesc()
2567 << "index type " << DrawTestSpec::indexTypeToString(indexType) << ", " in getDesc()
2568 << "index storage in " << DrawTestSpec::storageToString(indexStorage) << ", " in getDesc()
2575 << "index type " << DrawTestSpec::indexTypeToString(indexType) << ", " in getDesc()
2576 << "index storage in " << DrawTestSpec::storageToString(indexStorage) << ", " in getDesc()
2585 << "index type " << DrawTestSpec::indexTypeToString(indexType) << ", " in getDesc()
2586 << "index storage in " << DrawTestSpec::storageToString(indexStorage) << ", " in getDesc()
2602 << "index type " << DrawTestSpec::indexTypeToString(indexType) << ", " in getDesc()
2603 << "index storage in " << DrawTestSpec::storageToString(indexStorage) << ", " in getDesc()
2616 case DrawTestSpec::PRIMITIVE_POINTS: in getDesc()
2619 case DrawTestSpec::PRIMITIVE_TRIANGLES: in getDesc()
2622 case DrawTestSpec::PRIMITIVE_TRIANGLE_FAN: in getDesc()
2625 case DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP: in getDesc()
2628 case DrawTestSpec::PRIMITIVE_LINES: in getDesc()
2631 case DrawTestSpec::PRIMITIVE_LINE_STRIP: in getDesc()
2634 case DrawTestSpec::PRIMITIVE_LINE_LOOP: in getDesc()
2637 case DrawTestSpec::PRIMITIVE_LINES_ADJACENCY: in getDesc()
2640 case DrawTestSpec::PRIMITIVE_LINE_STRIP_ADJACENCY: in getDesc()
2643 case DrawTestSpec::PRIMITIVE_TRIANGLES_ADJACENCY: in getDesc()
2646 case DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP_ADJACENCY: in getDesc()
2657 std::string DrawTestSpec::getMultilineDesc (void) const in getMultilineDesc()
2669 …<< "\tinput datatype " << DrawTestSpec::inputTypeToString((DrawTestSpec::InputType)attrib.inputTyp… in getMultilineDesc()
2671 << "\tused as " << DrawTestSpec::outputTypeToString(attrib.outputType) << "\n"; in getMultilineDesc()
2677 << "\tStorage in " << DrawTestSpec::storageToString(attrib.storage) << "\n" in getMultilineDesc()
2679 …<< "\tinput datatype " << DrawTestSpec::inputTypeToString((DrawTestSpec::InputType)attrib.inputTyp… in getMultilineDesc()
2682 << "\tused as " << DrawTestSpec::outputTypeToString(attrib.outputType) << "\n" in getMultilineDesc()
2704 << "\tindex type " << DrawTestSpec::indexTypeToString(indexType) << "\n" in getMultilineDesc()
2705 << "\tindex storage in " << DrawTestSpec::storageToString(indexStorage) << "\n" in getMultilineDesc()
2712 << "\tindex type " << DrawTestSpec::indexTypeToString(indexType) << "\n" in getMultilineDesc()
2713 << "\tindex storage in " << DrawTestSpec::storageToString(indexStorage) << "\n" in getMultilineDesc()
2722 << "\tindex type " << DrawTestSpec::indexTypeToString(indexType) << "\n" in getMultilineDesc()
2723 << "\tindex storage in " << DrawTestSpec::storageToString(indexStorage) << "\n" in getMultilineDesc()
2739 << "\tindex type " << DrawTestSpec::indexTypeToString(indexType) << "\n" in getMultilineDesc()
2740 << "\tindex storage in " << DrawTestSpec::storageToString(indexStorage) << "\n" in getMultilineDesc()
2750 << "\tindex type " << DrawTestSpec::indexTypeToString(indexType) << "\n" in getMultilineDesc()
2751 << "\tindex storage in " << DrawTestSpec::storageToString(indexStorage) << "\n" in getMultilineDesc()
2759 << "\tindex type " << DrawTestSpec::indexTypeToString(indexType) << "\n" in getMultilineDesc()
2760 << "\tindex storage in " << DrawTestSpec::storageToString(indexStorage) << "\n" in getMultilineDesc()
2769 << "\tindex type " << DrawTestSpec::indexTypeToString(indexType) << "\n" in getMultilineDesc()
2770 << "\tindex storage in " << DrawTestSpec::storageToString(indexStorage) << "\n" in getMultilineDesc()
2783 case DrawTestSpec::PRIMITIVE_POINTS: in getMultilineDesc()
2786 case DrawTestSpec::PRIMITIVE_TRIANGLES: in getMultilineDesc()
2789 case DrawTestSpec::PRIMITIVE_TRIANGLE_FAN: in getMultilineDesc()
2792 case DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP: in getMultilineDesc()
2795 case DrawTestSpec::PRIMITIVE_LINES: in getMultilineDesc()
2798 case DrawTestSpec::PRIMITIVE_LINE_STRIP: in getMultilineDesc()
2801 case DrawTestSpec::PRIMITIVE_LINE_LOOP: in getMultilineDesc()
2804 case DrawTestSpec::PRIMITIVE_LINES_ADJACENCY: in getMultilineDesc()
2807 case DrawTestSpec::PRIMITIVE_LINE_STRIP_ADJACENCY: in getMultilineDesc()
2810 case DrawTestSpec::PRIMITIVE_TRIANGLES_ADJACENCY: in getMultilineDesc()
2813 case DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP_ADJACENCY: in getMultilineDesc()
2826 DrawTestSpec::DrawTestSpec (void) in DrawTestSpec() function in deqp::gls::DrawTestSpec
2842 int DrawTestSpec::hash (void) const in hash()
2864 bool DrawTestSpec::valid (void) const in valid()
2902 …if (drawMethod != gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS && drawMethod != gls::DrawTestSpec::DRA… in valid()
2904 …if (drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS && (indexType != INDEXTYPE_BYTE && in… in valid()
2917 if (!attribs[ndx].useDefaultAttribute && attribs[ndx].storage == gls::DrawTestSpec::STORAGE_USER) in valid()
2923 if (indexPointerOffset % gls::DrawTestSpec::indexTypeSize(indexType) != 0) in valid()
2934 if (methodInfo.indexed && indexStorage == DrawTestSpec::STORAGE_USER) in valid()
2941 DrawTestSpec::CompatibilityTestType DrawTestSpec::isCompatibilityTest (void) const in isCompatibilityTest()
2996 static PrimitiveClass getDrawPrimitiveClass (gls::DrawTestSpec::Primitive primitiveType) in getDrawPrimitiveClass()
3000 case gls::DrawTestSpec::PRIMITIVE_POINTS: in getDrawPrimitiveClass()
3003 case gls::DrawTestSpec::PRIMITIVE_LINES: in getDrawPrimitiveClass()
3004 case gls::DrawTestSpec::PRIMITIVE_LINE_STRIP: in getDrawPrimitiveClass()
3005 case gls::DrawTestSpec::PRIMITIVE_LINE_LOOP: in getDrawPrimitiveClass()
3006 case gls::DrawTestSpec::PRIMITIVE_LINES_ADJACENCY: in getDrawPrimitiveClass()
3007 case gls::DrawTestSpec::PRIMITIVE_LINE_STRIP_ADJACENCY: in getDrawPrimitiveClass()
3010 case gls::DrawTestSpec::PRIMITIVE_TRIANGLES: in getDrawPrimitiveClass()
3011 case gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN: in getDrawPrimitiveClass()
3012 case gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP: in getDrawPrimitiveClass()
3013 case gls::DrawTestSpec::PRIMITIVE_TRIANGLES_ADJACENCY: in getDrawPrimitiveClass()
3014 case gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP_ADJACENCY: in getDrawPrimitiveClass()
3023 static bool containsLineCases (const std::vector<DrawTestSpec>& m_specs) in containsLineCases()
3035 DrawTest::DrawTest (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const DrawTestSpec& s… in DrawTest()
3075 void DrawTest::addIteration (const DrawTestSpec& spec, const char* description) in addIteration()
3159 const DrawTestSpec& spec = m_specs[specNdx]; in iterate()
3161 if (spec.drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_BASEVERTEX || in iterate()
3162 spec.drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX || in iterate()
3163 spec.drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX) in iterate()
3208 DrawTestSpec::AttributeSpec attribSpec = spec.attribs[attribNdx]; in iterate()
3216 m_glArrayPack->newArray(DrawTestSpec::STORAGE_USER); in iterate()
3217 m_rrArrayPack->newArray(DrawTestSpec::STORAGE_USER); in iterate()
3225 …const size_t elementSize = attribSpec.componentCount * DrawTestSpec::inputTypeSize(attribSpe… in iterate()
3237 …m_glArrayPack->getArray(attribNdx)->data(DrawTestSpec::TARGET_ARRAY, bufferSize, data, attribSpec.… in iterate()
3238 …m_rrArrayPack->getArray(attribNdx)->data(DrawTestSpec::TARGET_ARRAY, bufferSize, data, attribSpec.… in iterate()
3268 const size_t indexElementSize = DrawTestSpec::indexTypeSize(spec.indexType); in iterate()
3271 …const char* indexPointerBase = (spec.indexStorage == DrawTestSpec::STORAGE_USER) ? (indexArray) :… in iterate()
3279 …glArray->data(DrawTestSpec::TARGET_ELEMENT_ARRAY, indexArraySize, indexArray, DrawTestSpec::USAGE_… in iterate()
3280 …rrArray->data(DrawTestSpec::TARGET_ELEMENT_ARRAY, indexArraySize, indexArray, DrawTestSpec::USAGE_… in iterate()
3296 …c.primitive, spec.drawMethod, spec.first, (int)primitiveElementCount, DrawTestSpec::INDEXTYPE_LAST… in iterate()
3298 …c.primitive, spec.drawMethod, spec.first, (int)primitiveElementCount, DrawTestSpec::INDEXTYPE_LAST… in iterate()
3305 const DrawTestSpec::CompatibilityTestType ctype = spec.isCompatibilityTest(); in iterate()
3309 if (ctype == DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET) in iterate()
3311 else if (ctype == DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE) in iterate()
3321 const DrawTestSpec::CompatibilityTestType ctype = spec.isCompatibilityTest(); in iterate()
3323 if (ctype == DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET) in iterate()
3325 else if (ctype == DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE) in iterate()
3691 bool DrawTest::compare (gls::DrawTestSpec::Primitive primitiveType) in compare()
3766 float DrawTest::getCoordScale (const DrawTestSpec& spec) const in getCoordScale()
3772 DrawTestSpec::AttributeSpec attribSpec = spec.attribs[arrayNdx]; in getCoordScale()
3779 if (attribSpec.inputType == DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10) in getCoordScale()
3786 else if (attribSpec.inputType == DrawTestSpec::INPUTTYPE_INT_2_10_10_10) in getCoordScale()
3800 …if (attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_VEC3 || attribSpec.outputType == DrawTestSpe… in getCoordScale()
3801 …|| attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_IVEC3 || attribSpec.outputType == DrawTestSpe… in getCoordScale()
3802 …|| attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_UVEC3 || attribSpec.outputType == DrawTestSpe… in getCoordScale()
3811 float DrawTest::getColorScale (const DrawTestSpec& spec) const in getColorScale()
3817 DrawTestSpec::AttributeSpec attribSpec = spec.attribs[arrayNdx]; in getColorScale()
3823 if (attribSpec.inputType == DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10) in getColorScale()
3828 else if (attribSpec.inputType == DrawTestSpec::INPUTTYPE_INT_2_10_10_10) in getColorScale()
3838 if (attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_VEC4 || in getColorScale()
3839 attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_UVEC4 || in getColorScale()
3840 attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_IVEC4) in getColorScale()