Lines Matching refs:ri

105 	{ 0xce8ac2e4,	"Result",				ri::TYPE_RESULT			},
106 { 0x7c8cdcea, "Text", ri::TYPE_TEXT },
107 { 0xc6540c6e, "Number", ri::TYPE_NUMBER },
108 { 0x0d656c88, "Image", ri::TYPE_IMAGE },
109 { 0x8ac9ee14, "ImageSet", ri::TYPE_IMAGESET },
110 { 0x1181fa5a, "VertexShader", ri::TYPE_SHADER },
111 { 0xa93daef0, "FragmentShader", ri::TYPE_SHADER },
112 { 0x8f066128, "GeometryShader", ri::TYPE_SHADER },
113 { 0x235a931c, "TessControlShader", ri::TYPE_SHADER },
114 { 0xa1bf7153, "TessEvaluationShader", ri::TYPE_SHADER },
115 { 0x6c1415d9, "ComputeShader", ri::TYPE_SHADER },
116 { 0x72863a54, "ShaderProgram", ri::TYPE_SHADERPROGRAM },
117 { 0xb4efc08d, "ShaderSource", ri::TYPE_SHADERSOURCE },
118 { 0xaee4380a, "SpirVAssemblySource", ri::TYPE_SPIRVSOURCE },
119 { 0xff265913, "InfoLog", ri::TYPE_INFOLOG },
120 { 0x84159b73, "EglConfig", ri::TYPE_EGLCONFIG },
121 { 0xdd34391f, "EglConfigSet", ri::TYPE_EGLCONFIGSET },
122 { 0xebbb3aba, "Section", ri::TYPE_SECTION },
123 { 0xa0f15677, "KernelSource", ri::TYPE_KERNELSOURCE },
124 { 0x1ee9083a, "CompileInfo", ri::TYPE_COMPILEINFO },
125 { 0xf1004023, "SampleList", ri::TYPE_SAMPLELIST },
126 { 0xf0feae93, "SampleInfo", ri::TYPE_SAMPLEINFO },
127 { 0x2aa6f14e, "ValueInfo", ri::TYPE_VALUEINFO },
128 { 0xd09429e7, "Sample", ri::TYPE_SAMPLE },
129 { 0x0e4a4722, "Value", ri::TYPE_SAMPLEVALUE },
134 { 0xcc4ffac8, "RGB888", ri::Image::FORMAT_RGB888 },
135 { 0x20dcb0c1, "RGBA8888", ri::Image::FORMAT_RGBA8888 }
140 { 0x7c89bbd5, "None", ri::Image::COMPRESSION_NONE },
141 { 0x0b88118a, "PNG", ri::Image::COMPRESSION_PNG }
146 { 0x1181fa5a, "VertexShader", ri::Shader::SHADERTYPE_VERTEX },
147 { 0xa93daef0, "FragmentShader", ri::Shader::SHADERTYPE_FRAGMENT },
148 { 0x8f066128, "GeometryShader", ri::Shader::SHADERTYPE_GEOMETRY },
149 { 0x235a931c, "TessControlShader", ri::Shader::SHADERTYPE_TESS_CONTROL },
150 { 0xa1bf7153, "TessEvaluationShader", ri::Shader::SHADERTYPE_TESS_EVALUATION },
151 { 0x6c1415d9, "ComputeShader", ri::Shader::SHADERTYPE_COMPUTE },
174 { 0xddf2d0d1, "Predictor", ri::ValueInfo::VALUETAG_PREDICTOR },
175 { 0x9bee2c34, "Response", ri::ValueInfo::VALUETAG_RESPONSE },
222 static ri::Type getResultItemType (const char* elemName) in getResultItemType()
224 …return (ri::Type)getEnumValue("result item type", s_resultItemMap, DE_LENGTH_OF_ARRAY(s_resultItem… in getResultItemType()
227 static ri::Image::Format getImageFormat (const char* imageFormat) in getImageFormat()
229 …return (ri::Image::Format)getEnumValue("image format", s_imageFormatMap, DE_LENGTH_OF_ARRAY(s_imag… in getImageFormat()
232 static ri::Image::Compression getImageCompression (const char* compression) in getImageCompression()
234 …return (ri::Image::Compression)getEnumValue("image compression", s_compressionMap, DE_LENGTH_OF_AR… in getImageCompression()
237 static ri::Shader::ShaderType getShaderTypeFromTagName (const char* shaderType) in getShaderTypeFromTagName()
239 …return (ri::Shader::ShaderType)getEnumValue("shader type", s_shaderTypeFromTagMap, DE_LENGTH_OF_AR… in getShaderTypeFromTagName()
252 static ri::ValueInfo::ValueTag getSampleValueTag (const char* tag) in getSampleValueTag()
254 …return (ri::ValueInfo::ValueTag)getEnumValue("sample value tag", s_sampleValueTagMap, DE_LENGTH_OF… in getSampleValueTag()
273 static ri::NumericValue getNumericValue (const std::string& value) in getNumericValue()
280 return ri::NumericValue(num); in getNumericValue()
285 return ri::NumericValue(num); in getNumericValue()
392 ri::Item* TestResultParser::getCurrentItem (void) in getCurrentItem()
397 ri::List* TestResultParser::getCurrentItemList (void) in getCurrentItemList()
407 for (vector<ri::Item*>::reverse_iterator i = m_itemStack.rbegin(); i != m_itemStack.rend(); i++) in updateCurrentItemList()
409 ri::Item* item = *i; in updateCurrentItemList()
410 ri::Type type = item->getType(); in updateCurrentItemList()
412 if (type == ri::TYPE_IMAGESET) in updateCurrentItemList()
413 m_curItemList = &static_cast<ri::ImageSet*>(item)->images; in updateCurrentItemList()
414 else if (type == ri::TYPE_SECTION) in updateCurrentItemList()
415 m_curItemList = &static_cast<ri::Section*>(item)->items; in updateCurrentItemList()
416 else if (type == ri::TYPE_EGLCONFIGSET) in updateCurrentItemList()
417 m_curItemList = &static_cast<ri::EglConfigSet*>(item)->configs; in updateCurrentItemList()
418 else if (type == ri::TYPE_SHADERPROGRAM) in updateCurrentItemList()
419 m_curItemList = &static_cast<ri::ShaderProgram*>(item)->shaders; in updateCurrentItemList()
429 void TestResultParser::pushItem (ri::Item* item) in pushItem()
472 ri::List* curList = getCurrentItemList(); in handleElementStart()
473 ri::Type itemType = getResultItemType(elemName); in handleElementStart()
474 ri::Item* item = DE_NULL; in handleElementStart()
475 ri::Item* parentItem = getCurrentItem(); in handleElementStart()
476 ri::Type parentType = parentItem ? parentItem->getType() : ri::TYPE_LAST; in handleElementStart()
480 case ri::TYPE_RESULT: in handleElementStart()
482 ri::Result* result = curList->allocItem<ri::Result>(); in handleElementStart()
488 case ri::TYPE_TEXT: in handleElementStart()
489 item = curList->allocItem<ri::Text>(); in handleElementStart()
492 case ri::TYPE_SECTION: in handleElementStart()
494 ri::Section* section = curList->allocItem<ri::Section>(); in handleElementStart()
501 case ri::TYPE_NUMBER: in handleElementStart()
503 ri::Number* number = curList->allocItem<ri::Number>(); in handleElementStart()
517 case ri::TYPE_IMAGESET: in handleElementStart()
519 ri::ImageSet* imageSet = curList->allocItem<ri::ImageSet>(); in handleElementStart()
526 case ri::TYPE_IMAGE: in handleElementStart()
528 ri::Image* image = curList->allocItem<ri::Image>(); in handleElementStart()
539 case ri::TYPE_SHADERPROGRAM: in handleElementStart()
541 ri::ShaderProgram* shaderProgram = curList->allocItem<ri::ShaderProgram>(); in handleElementStart()
547 case ri::TYPE_SHADER: in handleElementStart()
549 if (parentType != ri::TYPE_SHADERPROGRAM) in handleElementStart()
552 ri::Shader* shader = curList->allocItem<ri::Shader>(); in handleElementStart()
561 case ri::TYPE_SPIRVSOURCE: in handleElementStart()
563 if (parentType != ri::TYPE_SHADERPROGRAM) in handleElementStart()
565 item = curList->allocItem<ri::SpirVSource>(); in handleElementStart()
569 case ri::TYPE_SHADERSOURCE: in handleElementStart()
570 if (parentType == ri::TYPE_SHADER) in handleElementStart()
571 item = &static_cast<ri::Shader*>(parentItem)->source; in handleElementStart()
576 case ri::TYPE_INFOLOG: in handleElementStart()
577 if (parentType == ri::TYPE_SHADERPROGRAM) in handleElementStart()
578 item = &static_cast<ri::ShaderProgram*>(parentItem)->linkInfoLog; in handleElementStart()
579 else if (parentType == ri::TYPE_SHADER) in handleElementStart()
580 item = &static_cast<ri::Shader*>(parentItem)->infoLog; in handleElementStart()
581 else if (parentType == ri::TYPE_COMPILEINFO) in handleElementStart()
582 item = &static_cast<ri::CompileInfo*>(parentItem)->infoLog; in handleElementStart()
587 case ri::TYPE_KERNELSOURCE: in handleElementStart()
588 item = curList->allocItem<ri::KernelSource>(); in handleElementStart()
591 case ri::TYPE_COMPILEINFO: in handleElementStart()
593 ri::CompileInfo* info = curList->allocItem<ri::CompileInfo>(); in handleElementStart()
601 case ri::TYPE_EGLCONFIGSET: in handleElementStart()
603 ri::EglConfigSet* set = curList->allocItem<ri::EglConfigSet>(); in handleElementStart()
610 case ri::TYPE_EGLCONFIG: in handleElementStart()
612 ri::EglConfig* config = curList->allocItem<ri::EglConfig>(); in handleElementStart()
647 case ri::TYPE_SAMPLELIST: in handleElementStart()
649 ri::SampleList* list = curList->allocItem<ri::SampleList>(); in handleElementStart()
656 case ri::TYPE_SAMPLEINFO: in handleElementStart()
658 if (parentType != ri::TYPE_SAMPLELIST) in handleElementStart()
661 ri::SampleList* list = static_cast<ri::SampleList*>(parentItem); in handleElementStart()
662 ri::SampleInfo* info = &list->sampleInfo; in handleElementStart()
668 case ri::TYPE_VALUEINFO: in handleElementStart()
670 if (parentType != ri::TYPE_SAMPLEINFO) in handleElementStart()
673 ri::SampleInfo* sampleInfo = static_cast<ri::SampleInfo*>(parentItem); in handleElementStart()
674 ri::ValueInfo* valueInfo = sampleInfo->valueInfos.allocItem<ri::ValueInfo>(); in handleElementStart()
687 case ri::TYPE_SAMPLE: in handleElementStart()
689 if (parentType != ri::TYPE_SAMPLELIST) in handleElementStart()
692 ri::SampleList* list = static_cast<ri::SampleList*>(parentItem); in handleElementStart()
693 ri::Sample* sample = list->samples.allocItem<ri::Sample>(); in handleElementStart()
699 case ri::TYPE_SAMPLEVALUE: in handleElementStart()
701 if (parentType != ri::TYPE_SAMPLE) in handleElementStart()
704 ri::Sample* sample = static_cast<ri::Sample*>(parentItem); in handleElementStart()
705 ri::SampleValue* value = sample->values.allocItem<ri::SampleValue>(); in handleElementStart()
740 ri::Type itemType = getResultItemType(elemName); in handleElementEnd()
741 ri::Item* curItem = getCurrentItem(); in handleElementEnd()
746 if (itemType == ri::TYPE_RESULT) in handleElementEnd()
748 ri::Result* result = static_cast<ri::Result*>(curItem); in handleElementEnd()
752 else if (itemType == ri::TYPE_NUMBER) in handleElementEnd()
755 ri::Number* number = static_cast<ri::Number*>(curItem); in handleElementEnd()
759 else if (itemType == ri::TYPE_SAMPLEVALUE) in handleElementEnd()
761 ri::SampleValue* value = static_cast<ri::SampleValue*>(curItem); in handleElementEnd()
772 ri::Item* curItem = getCurrentItem(); in handleData()
773 ri::Type type = curItem ? curItem->getType() : ri::TYPE_LAST; in handleData()
777 case ri::TYPE_RESULT: in handleData()
778 m_xmlParser.appendDataStr(static_cast<ri::Result*>(curItem)->details); in handleData()
781 case ri::TYPE_TEXT: in handleData()
782 m_xmlParser.appendDataStr(static_cast<ri::Text*>(curItem)->text); in handleData()
785 case ri::TYPE_SHADERSOURCE: in handleData()
786 m_xmlParser.appendDataStr(static_cast<ri::ShaderSource*>(curItem)->source); in handleData()
789 case ri::TYPE_SPIRVSOURCE: in handleData()
790 m_xmlParser.appendDataStr(static_cast<ri::SpirVSource*>(curItem)->source); in handleData()
793 case ri::TYPE_INFOLOG: in handleData()
794 m_xmlParser.appendDataStr(static_cast<ri::InfoLog*>(curItem)->log); in handleData()
797 case ri::TYPE_KERNELSOURCE: in handleData()
798 m_xmlParser.appendDataStr(static_cast<ri::KernelSource*>(curItem)->source); in handleData()
801 case ri::TYPE_NUMBER: in handleData()
802 case ri::TYPE_SAMPLEVALUE: in handleData()
806 case ri::TYPE_IMAGE: in handleData()
808 ri::Image* image = static_cast<ri::Image*>(curItem); in handleData()