Lines Matching refs:m_spec
117 const TestSpec m_spec; member in deqp::gles31::Functional::__anon5918c1d40111::AtomicCounterTest
122 deUint32 getInitialValue (void) const { return m_spec.callCount * m_spec.threadCount + 1; } in getInitialValue()
140 if (m_spec.operations & OPERATION_INC) in getOperationCount()
143 if (m_spec.operations & OPERATION_DEC) in getOperationCount()
146 if (m_spec.operations == OPERATION_GET) in getOperationCount()
148 else if (m_spec.operations & OPERATION_GET) in getOperationCount()
156 , m_spec (spec) in AtomicCounterTest()
536 if ((m_spec.operations & OPERATION_INC) != 0 && (m_spec.operations & OPERATION_DEC) == 0) in checkAndLogCounterValues()
537 …itialValue + (m_spec.useBranches ? m_spec.threadCount*m_spec.callCount - m_spec.threadCount*m_spec… in checkAndLogCounterValues()
539 if ((m_spec.operations & OPERATION_INC) == 0 && (m_spec.operations & OPERATION_DEC) != 0) in checkAndLogCounterValues()
540 …itialValue - (m_spec.useBranches ? m_spec.threadCount*m_spec.callCount - m_spec.threadCount*m_spec… in checkAndLogCounterValues()
542 if ((m_spec.operations & OPERATION_INC) != 0 && (m_spec.operations & OPERATION_DEC) != 0) in checkAndLogCounterValues()
543 …(m_spec.useBranches ? m_spec.threadCount*m_spec.callCount - m_spec.threadCount*m_spec.callCount/2 … in checkAndLogCounterValues()
545 if ((m_spec.operations & OPERATION_INC) == 0 && (m_spec.operations & OPERATION_DEC) == 0) in checkAndLogCounterValues()
559 const int bufferValueCount = m_spec.callCount * m_spec.threadCount * m_spec.atomicCounterCount; in splitBuffer()
573 if (m_spec.operations == OPERATION_GET) in splitBuffer()
575 else if (m_spec.operations == OPERATION_INC) in splitBuffer()
577 else if (m_spec.operations == OPERATION_DEC) in splitBuffer()
579 else if (m_spec.operations == (OPERATION_GET|OPERATION_INC)) in splitBuffer()
585 else if (m_spec.operations == (OPERATION_GET|OPERATION_DEC)) in splitBuffer()
591 else if (m_spec.operations == (OPERATION_GET|OPERATION_DEC|OPERATION_INC)) in splitBuffer()
598 else if (m_spec.operations == (OPERATION_DEC|OPERATION_INC)) in splitBuffer()
606 for (int threadNdx = 0; threadNdx < m_spec.threadCount; threadNdx++) in splitBuffer()
608 for (int callNdx = 0; callNdx < m_spec.callCount; callNdx++) in splitBuffer()
610 for (int counterNdx = 0; counterNdx < m_spec.atomicCounterCount; counterNdx++) in splitBuffer()
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()
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()
824 if (m_spec.operations == OPERATION_GET) in checkAndLogCallValues()
831 …if ((!m_spec.useBranches || gets[valueNdx] != (deUint32)-1) && gets[valueNdx] != getInitialValue()) in checkAndLogCallValues()
845 else if ((m_spec.operations & (OPERATION_INC|OPERATION_DEC)) == (OPERATION_INC|OPERATION_DEC)) in checkAndLogCallValues()
848 if (!checkPath(counterIncrements, counterDecrements, getInitialValue(), m_spec)) in checkAndLogCallValues()
856 else if ((m_spec.operations & OPERATION_INC) != 0) in checkAndLogCallValues()
870 if (isOk && ((m_spec.operations & OPERATION_GET) != 0)) in checkAndLogCallValues()
883 else if ((m_spec.operations & OPERATION_DEC) != 0) in checkAndLogCallValues()
897 if (isOk && ((m_spec.operations & OPERATION_GET) != 0)) in checkAndLogCallValues()
921 …glu::ProgramSources() << glu::ShaderSource(glu::SHADERTYPE_COMPUTE, generateShaderSource(m_spec))); in iterate()
923 const deInt32 counterBufferSize = m_spec.atomicCounterCount * 4; in iterate()
924 …const deInt32 ssoSize = m_spec.atomicCounterCount * m_spec.callCount * m_spec.threadCount * … in iterate()
928 …m_spec.offsetType == OFFSETTYPE_INVALID || m_spec.offsetType == OFFSETTYPE_INVALID_DEFAULT || m_sp… in iterate()
960 vector<deUint32> data(m_spec.atomicCounterCount, getInitialValue()); in iterate()
975 gl.dispatchCompute(m_spec.threadCount, 1, 1); in iterate()
982 vector<deUint32> counters(m_spec.atomicCounterCount, 0); in iterate()