Home | History | Annotate | Download | only in functional

Lines Matching defs:result

104 	string			result;
107 result += "(amount: " + de::toString(length) + ") ";
108 result += string() + "{" + (length > wrapLength ? "\n"+deepIndentation : " ");
115 result += string() + ", " + (index % wrapLength == 0 ? "\n"+deepIndentation : "");
116 result += de::toString(*it);
120 result += length > wrapLength ? "\n"+baseIndentation : " ";
123 result += "}";
124 return result;
148 vector<MembT> result(objs.size());
150 result[i] = objs[i].*membP;
151 return result;
170 tcu::Vector<bool, Size> result;
171 result[index] = true;
172 return result;
192 tcu::Surface result(width, height);
193 glu::readPixels(rCtx, x, y, result.getAccess());
194 return result;
210 tcu::TextureLevel result;
211 tcu::ImageIO::loadPNG(result, archive, filename.c_str());
212 return result;
224 int result = 0;
226 result += numBasicSubobjects(structType.getMember(i).getType());
227 return result;
256 deUint32 result = (deUint32)-1;
257 gl.getQueryObjectuiv(queryObject, GL_QUERY_RESULT, &result);
258 TCU_CHECK(result != (deUint32)-1);
259 return result;
279 vector<T> result(numElems);
280 readDataMapped(gl, bufferTarget, numElems, &result[0]);
281 return result;
298 struct Result
303 Result (void) : numPrimitives(-1) {}
304 Result (int n, const vector<VaryingT>& v) : numPrimitives(n), varying(v) {}
309 Result renderAndGetPrimitives (deUint32 programGL, deUint32 tfPrimTypeGL, int numBindings, const glu::VertexArrayBinding* bindings, int numVertices) const;
334 typename TransformFeedbackHandler<AttribType>::Result TransformFeedbackHandler<AttribType>::renderAndGetPrimitives (deUint32 programGL, deUint32 tfPrimTypeGL, int numBindings, const glu::VertexArrayBinding* bindings, int numVertices) const
355 return Result(numPrimsWritten, readDataMapped<AttribType>(gl, GL_TRANSFORM_FEEDBACK_BUFFER, numPrimsWritten * numVerticesPerPrimitive(tfPrimTypeGL)));
577 int result = (int)deFloatCeil(clampedTessLevel);
582 result += 1 - result % 2; break;
583 case SPACINGMODE_FRACTIONAL_EVEN: result += result % 2; break;
587 DE_ASSERT(de::inRange<int>(result, 1, MINIMUM_MAX_TESS_GEN_LEVEL));
589 return result;
612 string result;
614 result += string() + (i > 0 ? " or " : "") + coordinateNames[constantCoordinateIndex] + "=" + de::toString(constantCoordinateValueChoices[i]);
615 return result;
725 int result = outer0 + outer1 + outer2;
733 result += 4;
735 result += 2*3*curInnerTriangleLevel;
738 return result;
998 int result = 0;
1000 result += referenceVertexCount(primitiveType, spacingMode, usePointMode, &levels[6*patchNdx + 0], &levels[6*patchNdx + 2]);
1001 return result;
1092 vector<T> result = unsorted;
1093 std::sort(result.begin(), result.end(), pred);
1094 return result;
1100 vector<T> result = unsorted;
1101 std::sort(result.begin(), result.end());
1102 return result;
1173 // Check that all points in reference also exist in result.
1174 success = oneWayComparePointSets(log, refVisual, primitiveType, refCoords, resCoords, "reference", "result", tcu::RGBA::blue()) && success;
1175 // Check that all points in result also exist in reference.
1176 success = oneWayComparePointSets(log, resVisual, primitiveType, resCoords, refCoords, "result", "reference", tcu::RGBA::red()) && success;
1180 log << TestLog::Message << "Note: in the following reference visualization, points that are missing in result point set are blue (if any)" << TestLog::EndMessage
1182 << TestLog::Message << "Note: in the following result visualization, points that are missing in reference point set are red (if any)" << TestLog::EndMessage;
1185 log << TestLog::Image("ResTessCoordVisualization", "Result tessCoord visualization", resVisual);
1816 // Ad-hoc result verification - check that a certain rectangle in the image contains no black pixels.
1830 log << TestLog::Message << "Failure: there seem to be cracks in the rendered result" << TestLog::EndMessage
1838 log << TestLog::Message << "Success: there seem to be no cracks in the rendered result" << TestLog::EndMessage;
1967 vector<TessLevels> result;
1968 result.reserve(DE_LENGTH_OF_ARRAY(rawTessLevelCases));
1997 result.push_back(curTessLevelCase);
2000 DE_ASSERT((int)result.size() == DE_LENGTH_OF_ARRAY(rawTessLevelCases));
2001 return result;
2055 const TFHandler::Result tfResult = tfHandler.renderAndGetPrimitives(programGL, GL_POINTS, 0, DE_NULL, 1);
2174 vector<float> result;
2183 result.push_back(rangeStarts[rangeNdx] + (float)i/(float)numSamplesPerRange);
2188 result.push_back((float)i + 0.3f);
2190 return result;
2228 const TFHandler::Result tfResult = tfHandler.renderAndGetPrimitives(programGL, GL_POINTS, 0, DE_NULL, 1);
3552 vector<LevelCase> result;
3554 result.push_back(LevelCase(basicTessLevelCases[i]));
3565 result.push_back(LevelCase(levels));
3569 return result;
3736 const TFHandler::Result tfResult = transformFeedback.renderAndGetPrimitives(programGL, primitiveTypeGL, DE_LENGTH_OF_ARRAY(bindings), &bindings[0], DE_LENGTH_OF_ARRAY(attribute));
4025 const TFHandler::Result tfResult = tfHandler.renderAndGetPrimitives(programGL, outputPrimitiveTypeGL(m_primitiveType, program.usePointMode),
4301 const TFHandler::Result tfResult = tfHandler.renderAndGetPrimitives(programGL, outputPrimitiveTypeGL(m_primitiveType, m_usePointMode),
4560 const TFHandler::Result tfResult = tfHandler.renderAndGetPrimitives(programGL, outputPrimitiveTypeGL(m_primitiveType, m_usePointMode),
4688 vector<LevelCase> result;
4708 result.push_back(levelCase);
4711 return result;
4777 vector<LevelCase> result;
4807 result.push_back(levelCase);
4811 return result;
5015 vector<float> result;
5019 result.push_back(rnd.getFloat(1.0f, 63.0f));
5021 return result;
5054 const TFHandler::Result tfResult = tfHandler.renderAndGetPrimitives(programGL, outputPrimitiveTypeGL(m_primitiveType, m_usePointMode),
5273 // in the result vector, and when scanning the resulting 2d grid
5281 vector<float> result;
5301 result.push_back(choices[j][i[j]]);
5307 result.push_back((float)2.0f / (float)numCols);
5308 result.push_back((float)2.0f / (float)numRows);
5310 result.push_back((float)col / (float)numCols * 2.0f - 1.0f);
5311 result.push_back((float)row / (float)numRows * 2.0f - 1.0f);
5318 return result;
5364 const TFHandler::Result tfResult = tfHandler.renderAndGetPrimitives(programGL, outputPrimitiveTypeGL(m_primitiveType, m_usePointMode),
5485 * As a sanity check, also the rendering result is verified (against pre-
5682 string result;
5687 result += glslTraverseBasicTypes(rootName + "." + member.getName(), member.getType(), arrayNestingDepth, indentationDepth, visit);
5690 return result;
5762 string result = indentation + "for (int i0 = 0; i0 < " + de::toString(numArrayElements) + "; i0++)\n" +
5765 result += UserDefinedIOCase::glslTraverseBasicTypes(m_interfaceName + "[i0]." + m_members[i].name, m_members[i].type, 1, indentationDepth+1, visit);
5766 result += indentation + "}\n";
5767 return result;
5771 string result;
5773 result += UserDefinedIOCase::glslTraverseBasicTypes(m_interfaceName + "[gl_InvocationID]." + m_members[i].name, m_members[i].type, 0, indentationDepth, visit);
5774 return result;
5781 string result;
5783 result += UserDefinedIOCase::glslTraverseBasicTypes(m_interfaceName + "." + m_members[i].name, m_members[i].type, 0, indentationDepth, visit);
5784 return result;
5794 int result = 0;
5796 result += numBasicSubobjects(m_members[i].type);
5797 return result;
5844 string result;
5846 result += indentation + name + " = ";
5849 result += string() + glu::getDataTypeName(type) + "(";
5851 result += (i > 0 ? ", v+" + de::floatToString(0.8f*(float)i, 1)
5854 result += ")";
5855 result += ";\n" +
5857 return result;
5865 string result;
5867 result += indentation + "allOk = allOk && compare_" + glu::getDataTypeName(type) + "(" + name + ", ";
5870 result += string() + glu::getDataTypeName(type) + "(";
5872 result += (i > 0 ? ", v+" + de::floatToString(0.8f*(float)i, 1)
5875 result += ")";
5876 result += ");\n" +
5880 return result;
5885 int result = 0;
5887 result += objects[i]->numBasicSubobjectsInElementType();
5888 return result;
6175 tcu::ResultCollector result;
6186 const TFHandler::Result tfResult = tfHandler.renderAndGetPrimitives(programGL, outputPrimitiveTypeGL(m_primitiveType, false),
6195 result.fail("Image comparison failed");
6201 result.fail("Wrong number of vertices");
6218 result.fail("Invalid transform feedback output");
6224 result.fail("Invalid input value in tessellation evaluation shader");
6230 result.setTestContextResult(m_testCtx);
6443 tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: ");
6446 verifyStateIntegerMin(result, gl, m_target, m_minValue, QUERY_INTEGER);
6450 verifyStateIntegerMin(result, gl, m_target, m_minValue, QUERY_BOOLEAN);
6451 verifyStateIntegerMin(result, gl, m_target, m_minValue, QUERY_INTEGER64);
6452 verifyStateIntegerMin(result, gl, m_target, m_minValue, QUERY_FLOAT);
6455 result.setTestContextResult(m_testCtx);
6484 tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: ");
6497 GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glGetIntegerv");
6501 GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glGetIntegerv");
6505 GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glGetIntegerv");
6507 if (maxUniformBlocks.verifyValidity(result) && maxUniformBlockSize.verifyValidity(result) && maxUniformComponents.verifyValidity(result))
6510 verifyStateIntegerMin(result, gl, m_combined, limit, QUERY_INTEGER);
6514 verifyStateIntegerMin(result, gl, m_combined, limit, QUERY_BOOLEAN);
6515 verifyStateIntegerMin(result, gl, m_combined, limit, QUERY_INTEGER64);
6516 verifyStateIntegerMin(result, gl, m_combined, limit, QUERY_FLOAT);
6520 result.setTestContextResult(m_testCtx);
6542 tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: ");
6550 verifyStateInteger(result, gl, GL_PATCH_VERTICES, 3, QUERY_INTEGER);
6558 GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glPatchParameteri");
6560 verifyStateInteger(result, gl, GL_PATCH_VERTICES, 22, QUERY_INTEGER);
6563 verifyStateIntegerMin(result, gl, GL_PATCH_VERTICES, 22, QUERY_BOOLEAN);
6564 verifyStateIntegerMin(result, gl, GL_PATCH_VERTICES, 22, QUERY_INTEGER64);
6565 verifyStateIntegerMin(result, gl, GL_PATCH_VERTICES, 22, QUERY_FLOAT);
6569 result.setTestContextResult(m_testCtx);
6591 tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: ");
6596 queryState(result, gl, QUERY_BOOLEAN, GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED, state);
6601 verifyStateBoolean(result, gl, GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED, state.getBoolAccess(), QUERY_INTEGER);
6602 verifyStateBoolean(result, gl, GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED, state.getBoolAccess(), QUERY_INTEGER64);
6603 verifyStateBoolean(result, gl, GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED, state.getBoolAccess(), QUERY_FLOAT);
6606 result.setTestContextResult(m_testCtx);
6705 tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: ");
6708 verifyStateProgramInteger(result, gl, program.getProgram(), GL_TESS_CONTROL_OUTPUT_VERTICES, 4, QUERY_PROGRAM_INTEGER);
6710 result.setTestContextResult(m_testCtx);
6730 tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: ");
6760 result.fail("failed to build program");
6762 verifyStateProgramInteger(result, gl, program.getProgram(), GL_TESS_GEN_MODE, s_modes[ndx].mode, QUERY_PROGRAM_INTEGER);
6765 result.setTestContextResult(m_testCtx);
6784 tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: ");
6815 result.fail("failed to build program");
6817 verifyStateProgramInteger(result, gl, program.getProgram(), GL_TESS_GEN_SPACING, s_modes[ndx].spacing, QUERY_PROGRAM_INTEGER);
6820 result.setTestContextResult(m_testCtx);
6839 tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: ");
6869 result.fail("failed to build program");
6871 verifyStateProgramInteger(result, gl, program.getProgram(), GL_TESS_GEN_VERTEX_ORDER, s_modes[ndx].order, QUERY_PROGRAM_INTEGER);
6874 result.setTestContextResult(m_testCtx);
6893 tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: ");
6922 result.fail("failed to build program");
6924 verifyStateProgramInteger(result, gl, program.getProgram(), GL_TESS_GEN_POINT_MODE, s_modes[ndx].mode, QUERY_PROGRAM_INTEGER);
6927 result.setTestContextResult(m_testCtx);
6960 tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: ");
6972 result.fail("failed to build program");
6987 result.fail("resourcePos was GL_INVALID_INDEX");
6997 GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "query resource");
7000 result.fail("expected GL_FALSE");
7014 result.fail("resourcePos was GL_INVALID_INDEX");
7027 result.fail("expected GL_TRUE");
7032 result.setTestContextResult(m_testCtx);
7133 tcu::ResultCollector result (m_testCtx.getLog(), " // ERROR: ");
7143 result.fail("failed to build program");
7158 result.fail("resourcePos was GL_INVALID_INDEX");
7168 GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "query resource");
7171 result.fail("expected GL_TRUE");
7185 result.fail("resourcePos was GL_INVALID_INDEX");
7198 result.fail("expected GL_FALSE");
7203 result.setTestContextResult(m_testCtx);
7357 TestCaseGroup* const miscDrawGroup = new TestCaseGroup(m_context, "misc_draw", "Miscellaneous draw-result-verifying cases");