Lines Matching refs:refEntry
1676 bool compareBufferVarData (tcu::TestLog& log, const BufferVarLayoutEntry& refEntry, const BlockDataPtr& refBlockPtr, const BufferVarLayoutEntry& resEntry, const BlockDataPtr& resBlockPtr)
1678 DE_ASSERT(resEntry.arraySize <= refEntry.arraySize);
1679 DE_ASSERT(resEntry.topLevelArraySize <= refEntry.topLevelArraySize);
1681 DE_ASSERT(resEntry.type == refEntry.type);
1684 const deUint8* const refBasePtr = (const deUint8*)refBlockPtr.ptr + refEntry.offset;
1685 const glu::DataType scalarType = glu::getDataTypeScalarType(refEntry.type);
1696 const int refArraySize = refEntry.arraySize == 0 ? refBlockPtr.lastUnsizedArraySize : refEntry.arraySize;
1697 const int refArrayStride = refEntry.arrayStride;
1698 const int refTopLevelSize = refEntry.topLevelArraySize == 0 ? refBlockPtr.lastUnsizedArraySize : refEntry.topLevelArraySize;
1699 const int refTopLevelStride = refEntry.topLevelArrayStride;
1726 const deUint8* refCompPtr = refElemPtr + (refEntry.isRowMajor ? rowNdx*refEntry.matrixStride + colNdx*compSize
1727 : colNdx*refEntry.matrixStride + rowNdx*compSize);
1742 generateImmMatrixSrc(expected, refEntry.type, refEntry.matrixStride, refEntry.isRowMajor, refElemPtr);
1744 log << TestLog::Message << "ERROR: mismatch in " << refEntry.name << ", top-level ndx " << topElemNdx << ", bottom-level ndx " << elementNdx << ":\n"
1764 generateImmScalarVectorSrc(expected, refEntry.type, refElemPtr);
1766 log << TestLog::Message << "ERROR: mismatch in " << refEntry.name << ", top-level ndx " << topElemNdx << ", bottom-level ndx " << elementNdx << ":\n"
1777 log << TestLog::Message << "... (" << numFailed << " failures for " << refEntry.name << " in total)" << TestLog::EndMessage;
1801 const BufferVarLayoutEntry& refEntry = refLayout.bufferVars[*refVarNdxIter];
1802 int resVarNdx = resLayout.getVariableIndex(refEntry.name.c_str());
1807 allOk = compareBufferVarData(log, refEntry, refBlockPtr, resEntry, resBlockPtr) && allOk;
2321 const BufferVarLayoutEntry& refEntry = refLayout.bufferVars[*ndxIter];
2322 int cmpEntryNdx = cmpLayout.getVariableIndex(refEntry.name.c_str());
2326 log << TestLog::Message << "Error: Buffer variable '" << refEntry.name << "' not found" << TestLog::EndMessage;
2333 if (refEntry.type != cmpEntry.type ||
2334 refEntry.arraySize != cmpEntry.arraySize ||
2335 refEntry.offset != cmpEntry.offset ||
2336 refEntry.arrayStride != cmpEntry.arrayStride ||
2337 refEntry.matrixStride != cmpEntry.matrixStride ||
2338 refEntry.topLevelArraySize != cmpEntry.topLevelArraySize ||
2339 refEntry.topLevelArrayStride != cmpEntry.topLevelArrayStride ||
2340 refEntry.isRowMajor != cmpEntry.isRowMajor)
2342 log << TestLog::Message << "Error: Layout mismatch in '" << refEntry.name << "':\n"
2343 << " expected: " << refEntry << "\n"
2395 const BufferVarLayoutEntry& refEntry = refLayout.bufferVars[*ndxIter];
2396 int cmpEntryNdx = cmpLayout.getVariableIndex(refEntry.name.c_str());
2400 log << TestLog::Message << "Error: Buffer variable '" << refEntry.name << "' not found" << TestLog::EndMessage;
2407 if (refEntry.type != cmpEntry.type ||
2408 refEntry.arraySize != cmpEntry.arraySize ||
2409 refEntry.topLevelArraySize != cmpEntry.topLevelArraySize ||
2410 refEntry.isRowMajor != cmpEntry.isRowMajor)
2412 log << TestLog::Message << "Error: Type / array size mismatch in '" << refEntry.name << "':\n"
2413 << " expected: " << refEntry << "\n"
2463 const BufferVarLayoutEntry& refEntry = refLayout.bufferVars[refEntryNdx];
2465 if (refEntry.type != cmpEntry.type)
2467 log << TestLog::Message << "Error: Buffer variable type mismatch in '" << refEntry.name << "':\n"
2468 << " expected: " << glu::getDataTypeName(refEntry.type) << "\n"
2474 if (refEntry.arraySize < cmpEntry.arraySize)
2476 log << TestLog::Message << "Error: Invalid array size in '" << refEntry.name << "': expected <= " << refEntry.arraySize << TestLog::EndMessage;
2480 if (refEntry.topLevelArraySize < cmpEntry.topLevelArraySize)
2482 log << TestLog::Message << "Error: Invalid top-level array size in '" << refEntry.name << "': expected <= " << refEntry.topLevelArraySize << TestLog::EndMessage;