Lines Matching refs:counterNdx
258 for (int counterNdx = 0; counterNdx < spec.atomicCounterCount; counterNdx++) in generateShaderSource() local
262 if (spec.offsetType == OFFSETTYPE_RESET_DEFAULT && counterNdx == spec.atomicCounterCount/2) in generateShaderSource()
291 src << "uniform atomic_uint counter" << counterNdx << ";\n"; in generateShaderSource()
301 src << "offset=" << (counterNdx * 4) << ") uniform atomic_uint counter" << counterNdx << ";\n"; in generateShaderSource()
309 src << "uniform atomic_uint counter" << counterNdx << ";\n"; in generateShaderSource()
319 …src << "offset=" << (1 + counterNdx * 2) << ") uniform atomic_uint counter" << counterNdx << ";\n"; in generateShaderSource()
329 src << "offset=0) uniform atomic_uint counter" << counterNdx << ";\n"; in generateShaderSource()
339 …< (spec.atomicCounterCount - counterNdx - 1) * 4 << ") uniform atomic_uint counter" << (spec.atomi… in generateShaderSource()
346 if (counterNdx + 1 == spec.atomicCounterCount) in generateShaderSource()
355 else if (counterNdx == 0) in generateShaderSource()
369 src << "uniform atomic_uint counter" << (counterNdx + 1) << ";\n"; in generateShaderSource()
375 if (counterNdx + 1 == spec.atomicCounterCount) in generateShaderSource()
389 src << "uniform atomic_uint counter" << (counterNdx + 1) << ";\n"; in generateShaderSource()
398 if (counterNdx < spec.atomicCounterCount/2) in generateShaderSource()
399 src << "uniform atomic_uint counter" << (counterNdx + spec.atomicCounterCount/2) << ";\n"; in generateShaderSource()
401 src << "uniform atomic_uint counter" << (counterNdx - spec.atomicCounterCount/2) << ";\n"; in generateShaderSource()
435 for (int counterNdx = 0; counterNdx < spec.atomicCounterCount; counterNdx++) in generateShaderSource() local
438 …src << "\t\tsb_in.preGet[id + " << counterNdx << "u] = atomicCounter(counter" << counterNdx << ");… in generateShaderSource()
445 …<< "\t\t\tsb_in.increment[id + " << counterNdx << "u] = atomicCounterIncrement(counter" << counter… in generateShaderSource()
446 << "\t\t\tsb_in.decrement[id + " << counterNdx << "u] = uint(-1);\n" in generateShaderSource()
450 …<< "\t\t\tsb_in.decrement[id + " << counterNdx << "u] = atomicCounterDecrement(counter" << counter… in generateShaderSource()
451 << "\t\t\tsb_in.increment[id + " << counterNdx << "u] = uint(-1);\n" in generateShaderSource()
463 …<< "\t\t\tsb_in.increment[id + " << counterNdx << "u] = atomicCounterIncrement(counter" << counter… in generateShaderSource()
467 << "\t\t\tsb_in.increment[id + " << counterNdx << "u] = uint(-1);\n" in generateShaderSource()
472 …src << "\t\tsb_in.increment[id + " << counterNdx << "u] = atomicCounterIncrement(counter" << count… in generateShaderSource()
482 …<< "\t\t\tsb_in.decrement[id + " << counterNdx << "u] = atomicCounterDecrement(counter" << counter… in generateShaderSource()
486 << "\t\t\tsb_in.decrement[id + " << counterNdx << "u] = uint(-1);\n" in generateShaderSource()
491 …src << "\t\tsb_in.decrement[id + " << counterNdx << "u] = atomicCounterDecrement(counter" << count… in generateShaderSource()
496 …src << "\t\tsb_in.postGet[id + " << counterNdx << "u] = atomicCounter(counter" << counterNdx << ")… in generateShaderSource()
505 << "\t\t\tsb_in.get[id + " << counterNdx << "u] = atomicCounter(counter" << counterNdx << ");\n" in generateShaderSource()
509 << "\t\t\tsb_in.get[id + " << counterNdx << "u] = uint(-1);\n" in generateShaderSource()
513 …src << "\t\tsb_in.get[id + " << counterNdx << "u] = atomicCounter(counter" << counterNdx << ");\n"; in generateShaderSource()
530 for (int counterNdx = 0; counterNdx < (int)counters.size(); counterNdx++) in checkAndLogCounterValues() local
532 const deUint32 value = counters[counterNdx]; in checkAndLogCounterValues()
548 …log << TestLog::Message << "atomic_uint counter" << counterNdx << " initial value: " << initialVal… in checkAndLogCounterValues()
610 for (int counterNdx = 0; counterNdx < m_spec.atomicCounterCount; counterNdx++) in splitBuffer() local
612 …const int id = ((threadNdx * m_spec.callCount) + callNdx) * m_spec.atomicCounterCount + counterNdx; in splitBuffer()
810 for (int counterNdx = 0; counterNdx < m_spec.atomicCounterCount; counterNdx++) in checkAndLogCallValues() local
818 getCountersValues(counterIncrements, increments, counterNdx, m_spec.atomicCounterCount); in checkAndLogCallValues()
819 getCountersValues(counterDecrements, decrements, counterNdx, m_spec.atomicCounterCount); in checkAndLogCallValues()
820 getCountersValues(counterPreGets, preGets, counterNdx, m_spec.atomicCounterCount); in checkAndLogCallValues()
821 getCountersValues(counterPostGets, postGets, counterNdx, m_spec.atomicCounterCount); in checkAndLogCallValues()
822 getCountersValues(counterGets, gets, counterNdx, m_spec.atomicCounterCount); in checkAndLogCallValues()
826 …k(log, ("counter" + de::toString(counterNdx) + " value check").c_str(), ("Check that counter" + de… in checkAndLogCallValues()
834 …log << TestLog::Message << "atomicCounter(counter" << counterNdx << ") returned " << gets[valueNdx… in checkAndLogCallValues()
841 …log << TestLog::Message << "All values returned by atomicCounter(counter" << counterNdx << ") matc… in checkAndLogCallValues()
843 … "Total number of invalid values returned by atomicCounter(counter" << counterNdx << ") " << chang… in checkAndLogCallValues()
847 …unter" + de::toString(counterNdx) + " path check").c_str(), ("Check that there is order in which c… in checkAndLogCallValues()
851 …alls to atomicCounterIncrement(counter" << counterNdx << ") and atomicCounterDecrement(counter" <<… in checkAndLogCallValues()
854 …alls to atomicCounterIncrement(counter" << counterNdx << ") and atomicCounterDecrement(counter" <<… in checkAndLogCallValues()
859 …counter" + de::toString(counterNdx) + " check uniqueness and linearity").c_str(), ("Check that cou… in checkAndLogCallValues()
864 …log << TestLog::Message << "atomicCounterIncrement(counter" << counterNdx << ") returned non uniqu… in checkAndLogCallValues()
867 …log << TestLog::Message << "atomicCounterIncrement(counter" << counterNdx << ") returned only uniq… in checkAndLogCallValues()
872 …counterNdx) + " check range").c_str(), ("Check that counter" + de::toString(counterNdx) + " return… in checkAndLogCallValues()
877 …rement(counter" << counterNdx << ") returned value that is not between previous and next call to a… in checkAndLogCallValues()
880 …Increment(counter" << counterNdx << ") returned only values between previous and next call to atom… in checkAndLogCallValues()
886 …counter" + de::toString(counterNdx) + " check uniqueness and linearity").c_str(), ("Check that cou… in checkAndLogCallValues()
891 …log << TestLog::Message << "atomicCounterDecrement(counter" << counterNdx << ") returned non uniqu… in checkAndLogCallValues()
894 …log << TestLog::Message << "atomicCounterDecrement(counter" << counterNdx << ") returned only uniq… in checkAndLogCallValues()
899 …counterNdx) + " check range").c_str(), ("Check that counter" + de::toString(counterNdx) + " return… in checkAndLogCallValues()
904 …rement(counter" << counterNdx << ") returned value that is not between previous and next call to a… in checkAndLogCallValues()
907 …Decrement(counter" << counterNdx << ") returned only values between previous and next call to atom… in checkAndLogCallValues()