Lines Matching defs:refEntry
1685 bool compareBufferVarData (tcu::TestLog& log, const BufferVarLayoutEntry& refEntry, const BlockDataPtr& refBlockPtr, const BufferVarLayoutEntry& resEntry, const BlockDataPtr& resBlockPtr)
1687 DE_ASSERT(resEntry.arraySize <= refEntry.arraySize);
1688 DE_ASSERT(resEntry.topLevelArraySize <= refEntry.topLevelArraySize);
1690 DE_ASSERT(resEntry.type == refEntry.type);
1693 const deUint8* const refBasePtr = (const deUint8*)refBlockPtr.ptr + refEntry.offset;
1694 const glu::DataType scalarType = glu::getDataTypeScalarType(refEntry.type);
1705 const int refArraySize = refEntry.arraySize == 0 ? refBlockPtr.lastUnsizedArraySize : refEntry.arraySize;
1706 const int refArrayStride = refEntry.arrayStride;
1707 const int refTopLevelSize = refEntry.topLevelArraySize == 0 ? refBlockPtr.lastUnsizedArraySize : refEntry.topLevelArraySize;
1708 const int refTopLevelStride = refEntry.topLevelArrayStride;
1735 const deUint8* refCompPtr = refElemPtr + (refEntry.isRowMajor ? rowNdx*refEntry.matrixStride + colNdx*compSize
1736 : colNdx*refEntry.matrixStride + rowNdx*compSize);
1751 generateImmMatrixSrc(expected, refEntry.type, refEntry.matrixStride, refEntry.isRowMajor, refElemPtr);
1753 log << TestLog::Message << "ERROR: mismatch in " << refEntry.name << ", top-level ndx " << topElemNdx << ", bottom-level ndx " << elementNdx << ":\n"
1773 generateImmScalarVectorSrc(expected, refEntry.type, refElemPtr);
1775 log << TestLog::Message << "ERROR: mismatch in " << refEntry.name << ", top-level ndx " << topElemNdx << ", bottom-level ndx " << elementNdx << ":\n"
1786 log << TestLog::Message << "... (" << numFailed << " failures for " << refEntry.name << " in total)" << TestLog::EndMessage;
1810 const BufferVarLayoutEntry& refEntry = refLayout.bufferVars[*refVarNdxIter];
1811 int resVarNdx = resLayout.getVariableIndex(refEntry.name.c_str());
1816 allOk = compareBufferVarData(log, refEntry, refBlockPtr, resEntry, resBlockPtr) && allOk;
2330 const BufferVarLayoutEntry& refEntry = refLayout.bufferVars[*ndxIter];
2331 int cmpEntryNdx = cmpLayout.getVariableIndex(refEntry.name.c_str());
2335 log << TestLog::Message << "Error: Buffer variable '" << refEntry.name << "' not found" << TestLog::EndMessage;
2342 if (refEntry.type != cmpEntry.type ||
2343 refEntry.arraySize != cmpEntry.arraySize ||
2344 refEntry.offset != cmpEntry.offset ||
2345 refEntry.arrayStride != cmpEntry.arrayStride ||
2346 refEntry.matrixStride != cmpEntry.matrixStride ||
2347 refEntry.topLevelArraySize != cmpEntry.topLevelArraySize ||
2348 refEntry.topLevelArrayStride != cmpEntry.topLevelArrayStride ||
2349 refEntry.isRowMajor != cmpEntry.isRowMajor)
2351 log << TestLog::Message << "Error: Layout mismatch in '" << refEntry.name << "':\n"
2352 << " expected: " << refEntry << "\n"
2404 const BufferVarLayoutEntry& refEntry = refLayout.bufferVars[*ndxIter];
2405 int cmpEntryNdx = cmpLayout.getVariableIndex(refEntry.name.c_str());
2409 log << TestLog::Message << "Error: Buffer variable '" << refEntry.name << "' not found" << TestLog::EndMessage;
2416 if (refEntry.type != cmpEntry.type ||
2417 refEntry.arraySize != cmpEntry.arraySize ||
2418 refEntry.topLevelArraySize != cmpEntry.topLevelArraySize ||
2419 refEntry.isRowMajor != cmpEntry.isRowMajor)
2421 log << TestLog::Message << "Error: Type / array size mismatch in '" << refEntry.name << "':\n"
2422 << " expected: " << refEntry << "\n"
2472 const BufferVarLayoutEntry& refEntry = refLayout.bufferVars[refEntryNdx];
2474 if (refEntry.type != cmpEntry.type)
2476 log << TestLog::Message << "Error: Buffer variable type mismatch in '" << refEntry.name << "':\n"
2477 << " expected: " << glu::getDataTypeName(refEntry.type) << "\n"
2483 if (refEntry.arraySize < cmpEntry.arraySize)
2485 log << TestLog::Message << "Error: Invalid array size in '" << refEntry.name << "': expected <= " << refEntry.arraySize << TestLog::EndMessage;
2489 if (refEntry.topLevelArraySize < cmpEntry.topLevelArraySize)
2491 log << TestLog::Message << "Error: Invalid top-level array size in '" << refEntry.name << "': expected <= " << refEntry.topLevelArraySize << TestLog::EndMessage;