Lines Matching refs:threadNdx
2170 for (int threadNdx = 0; threadNdx < m_config.threadCount; threadNdx++) in init() local
2172 m_threads.push_back(new GLES2ThreadTest::EGLThread(egl, m_gl, deInt32Hash(m_seed+threadNdx))); in init()
2174 …SharedPtr<GLES2ThreadTest::GLES2Context> shared = (threadNdx > 0 ? resourceManager.popContext(0) :… in init()
2175 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::CreateContext(m_eglDisplay, m_eglConfig, s… in init()
2184 for (int threadNdx = 0; threadNdx < m_config.threadCount; threadNdx++) in init() local
2187 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::CreatePBufferSurface(m_eglDisplay, m_eglCo… in init()
2192 for (int threadNdx = 0; threadNdx < m_config.threadCount; threadNdx++) in init() local
2194 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::MakeCurrent(*m_threads[threadNdx], m_eglDi… in init()
2200 for (int threadNdx = 0; threadNdx < m_config.threadCount; threadNdx++) in init() local
2202 m_threads[threadNdx]->addOperation(new GLES2ThreadTest::InitGLExtension("GL_OES_EGL_sync")); in init()
2209 for (int threadNdx = 0; threadNdx < m_config.threadCount; threadNdx++) in init() local
2211 m_threads[threadNdx]->addOperation(new GLES2ThreadTest::InitGLExtension("GL_OES_EGL_image")); in init()
2220 for (int threadNdx = 0; threadNdx < m_config.threadCount; threadNdx++) in init() local
2222 SharedPtr<GLES2ThreadTest::GLES2Context> context = m_threads[threadNdx]->context; in init()
2223 SharedPtr<GLES2ThreadTest::Surface> surface = m_threads[threadNdx]->surface; in init()
2225 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::MakeCurrent(*m_threads[threadNdx], m_eglDi… in init()
2232 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in init() local
2233 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::DestroyContext(resourceManager.popContext(… in init()
2236 for (int threadNdx = 0; threadNdx < m_config.threadCount; threadNdx++) in init() local
2237 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::DestroySurface(m_eglDisplay, resourceManag… in init()
2242 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in deinit() local
2244 delete m_threads[threadNdx]; in deinit()
2245 m_threads[threadNdx] = DE_NULL; in deinit()
2261 int threadNdx = m_random.getUint32() % m_threads.size(); in addRandomOperation() local
2308 if (m_threads[threadNdx]->context->resourceManager->getBufferCount() > 0) in addRandomOperation()
2309 …destroyableBufferNdx = m_random.getUint32() % m_threads[threadNdx]->context->resourceManager->getB… in addRandomOperation()
2311 if (m_threads[threadNdx]->context->resourceManager->getTextureCount() > 0) in addRandomOperation()
2312 …destroyableTextureNdx = m_random.getUint32() % m_threads[threadNdx]->context->resourceManager->get… in addRandomOperation()
2314 if (m_threads[threadNdx]->context->resourceManager->getShaderCount() > 0) in addRandomOperation()
2315 …destroyableShaderNdx = m_random.getUint32() % m_threads[threadNdx]->context->resourceManager->getS… in addRandomOperation()
2317 if (m_threads[threadNdx]->context->resourceManager->getProgramCount() > 0) in addRandomOperation()
2318 …destroyableProgramNdx = m_random.getUint32() % m_threads[threadNdx]->context->resourceManager->get… in addRandomOperation()
2321 …for (int bufferNdx = 0; bufferNdx < m_threads[threadNdx]->context->resourceManager->getBufferCount… in addRandomOperation()
2323 …SharedPtr<GLES2ThreadTest::Buffer> buffer = m_threads[threadNdx]->context->resourceManager->getBuf… in addRandomOperation()
2335 …for (int textureNdx = 0; textureNdx < m_threads[threadNdx]->context->resourceManager->getTextureCo… in addRandomOperation()
2337 …SharedPtr<GLES2ThreadTest::Texture> texture = m_threads[threadNdx]->context->resourceManager->getT… in addRandomOperation()
2358 …for (int shaderNdx = 0; shaderNdx < m_threads[threadNdx]->context->resourceManager->getShaderCount… in addRandomOperation()
2360 …SharedPtr<GLES2ThreadTest::Shader> shader = m_threads[threadNdx]->context->resourceManager->getSha… in addRandomOperation()
2391 …for (int programNdx = 0; programNdx < m_threads[threadNdx]->context->resourceManager->getProgramCo… in addRandomOperation()
2393 …SharedPtr<GLES2ThreadTest::Program> program = m_threads[threadNdx]->context->resourceManager->getP… in addRandomOperation()
2456 if (m_threads[threadNdx]->context->resourceManager->getTextureCount() > 0) in addRandomOperation()
2592 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::CreateBuffer(buffer, m_config.useFenceSync… in addRandomOperation()
2593 m_threads[threadNdx]->context->resourceManager->addBuffer(buffer); in addRandomOperation()
2599 …SharedPtr<GLES2ThreadTest::Buffer> buffer = m_threads[threadNdx]->context->resourceManager->popBuf… in addRandomOperation()
2600 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::DeleteBuffer(buffer, m_config.useFenceSync… in addRandomOperation()
2606 …SharedPtr<GLES2ThreadTest::Buffer> buffer = m_threads[threadNdx]->context->resourceManager->popBuf… in addRandomOperation()
2607 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::BufferData(buffer, GL_ARRAY_BUFFER, 1024, … in addRandomOperation()
2608 m_threads[threadNdx]->context->resourceManager->addBuffer(buffer); in addRandomOperation()
2614 …SharedPtr<GLES2ThreadTest::Buffer> buffer = m_threads[threadNdx]->context->resourceManager->popBuf… in addRandomOperation()
2615 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::BufferSubData(buffer, GL_ARRAY_BUFFER, 1, … in addRandomOperation()
2616 m_threads[threadNdx]->context->resourceManager->addBuffer(buffer); in addRandomOperation()
2623 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::CreateTexture(texture, m_config.useFenceSy… in addRandomOperation()
2624 m_threads[threadNdx]->context->resourceManager->addTexture(texture); in addRandomOperation()
2629 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::DeleteTexture(m_threads[threadNdx]->contex… in addRandomOperation()
2634 …SharedPtr<GLES2ThreadTest::Texture> texture = m_threads[threadNdx]->context->resourceManager->popT… in addRandomOperation()
2635 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::TexImage2D(texture, 0, GL_RGBA, 400, 400, … in addRandomOperation()
2636 m_threads[threadNdx]->context->resourceManager->addTexture(texture); in addRandomOperation()
2642 …SharedPtr<GLES2ThreadTest::Texture> texture = m_threads[threadNdx]->context->resourceManager->popT… in addRandomOperation()
2643 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::TexSubImage2D(texture, 0, 30, 30, 50, 50, … in addRandomOperation()
2644 m_threads[threadNdx]->context->resourceManager->addTexture(texture); in addRandomOperation()
2650 …SharedPtr<GLES2ThreadTest::Texture> texture = m_threads[threadNdx]->context->resourceManager->popT… in addRandomOperation()
2651 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::CopyTexImage2D(texture, 0, GL_RGBA, 20, 20… in addRandomOperation()
2652 m_threads[threadNdx]->context->resourceManager->addTexture(texture); in addRandomOperation()
2658 …SharedPtr<GLES2ThreadTest::Texture> texture = m_threads[threadNdx]->context->resourceManager->popT… in addRandomOperation()
2659 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::CopyTexSubImage2D(texture, 0, 10, 10, 30, … in addRandomOperation()
2660 m_threads[threadNdx]->context->resourceManager->addTexture(texture); in addRandomOperation()
2667 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::CreateShader(GL_VERTEX_SHADER, shader, m_c… in addRandomOperation()
2668 m_threads[threadNdx]->context->resourceManager->addShader(shader); in addRandomOperation()
2675 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::CreateShader(GL_FRAGMENT_SHADER, shader, m… in addRandomOperation()
2676 m_threads[threadNdx]->context->resourceManager->addShader(shader); in addRandomOperation()
2681 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::DeleteShader(m_threads[threadNdx]->context… in addRandomOperation()
2701 …SharedPtr<GLES2ThreadTest::Shader> shader = m_threads[threadNdx]->context->resourceManager->popSha… in addRandomOperation()
2702 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::ShaderSource(shader, (shader->type == GL_V… in addRandomOperation()
2703 m_threads[threadNdx]->context->resourceManager->addShader(shader); in addRandomOperation()
2709 …SharedPtr<GLES2ThreadTest::Shader> shader = m_threads[threadNdx]->context->resourceManager->popSha… in addRandomOperation()
2710 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::ShaderCompile(shader, m_config.useFenceSyn… in addRandomOperation()
2711 m_threads[threadNdx]->context->resourceManager->addShader(shader); in addRandomOperation()
2718 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::CreateProgram(program, m_config.useFenceSy… in addRandomOperation()
2719 m_threads[threadNdx]->context->resourceManager->addProgram(program); in addRandomOperation()
2724 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::DeleteProgram(m_threads[threadNdx]->contex… in addRandomOperation()
2729 …SharedPtr<GLES2ThreadTest::Program> program = m_threads[threadNdx]->context->resourceManager->popP… in addRandomOperation()
2730 …SharedPtr<GLES2ThreadTest::Shader> shader = m_threads[threadNdx]->context->resourceManager->popSha… in addRandomOperation()
2732 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::AttachShader(program, shader, m_config.use… in addRandomOperation()
2734 m_threads[threadNdx]->context->resourceManager->addProgram(program); in addRandomOperation()
2735 m_threads[threadNdx]->context->resourceManager->addShader(shader); in addRandomOperation()
2741 …SharedPtr<GLES2ThreadTest::Program> program = m_threads[threadNdx]->context->resourceManager->popP… in addRandomOperation()
2742 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::DetachShader(program, detachShaderType, m_… in addRandomOperation()
2743 m_threads[threadNdx]->context->resourceManager->addProgram(program); in addRandomOperation()
2749 …SharedPtr<GLES2ThreadTest::Program> program = m_threads[threadNdx]->context->resourceManager->popP… in addRandomOperation()
2750 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::LinkProgram(program, m_config.useFenceSync… in addRandomOperation()
2751 m_threads[threadNdx]->context->resourceManager->addProgram(program); in addRandomOperation()
2758 …SharedPtr<GLES2ThreadTest::Texture> texture = m_threads[threadNdx]->context->resourceManager->popT… in addRandomOperation()
2759 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::CreateImageFromTexture(image, texture, m_c… in addRandomOperation()
2761 m_threads[threadNdx]->context->resourceManager->addTexture(texture); in addRandomOperation()
2770 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::DestroyImage(image, m_config.useFenceSync,… in addRandomOperation()
2777 …SharedPtr<GLES2ThreadTest::Texture> texture = m_threads[threadNdx]->context->resourceManager->popT… in addRandomOperation()
2779 …m_threads[threadNdx]->addOperation(new GLES2ThreadTest::DefineTextureFromImage(texture, image, m_c… in addRandomOperation()
2780 m_threads[threadNdx]->context->resourceManager->addTexture(texture); in addRandomOperation()
2799 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
2800 m_threads[threadNdx]->exec(); in iterate()
2810 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
2812 const tcu::ThreadUtil::Thread::ThreadStatus status = m_threads[threadNdx]->getStatus(); in iterate()
2820 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
2821 m_threads[threadNdx]->join(); in iterate()
2829 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
2831 if (m_threads[threadNdx]->getStatus() != tcu::ThreadUtil::Thread::THREADSTATUS_RUNNING) in iterate()
2833 if (m_threads[threadNdx]->isStarted()) in iterate()
2834 m_threads[threadNdx]->join(); in iterate()
2859 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
2861 if (m_threads[threadNdx]->getMessageCount() > indices[threadNdx]) in iterate()
2863 firstThread = threadNdx; in iterate()
2872 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
2875 if (m_threads[threadNdx]->getMessageCount() <= indices[threadNdx]) in iterate()
2878 …if ((m_threads[threadNdx]->getMessage(indices[threadNdx]).getTime() - m_beginTimeUs) < (m_threads[… in iterate()
2879 firstThread = threadNdx; in iterate()
2894 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
2896 const tcu::ThreadUtil::Thread::ThreadStatus status = m_threads[threadNdx]->getStatus(); in iterate()
3593 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in deinit() local
3595 delete m_threads[threadNdx]; in deinit()
3596 m_threads[threadNdx] = DE_NULL; in deinit()
3617 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
3618 m_threads[threadNdx]->exec(); in iterate()
3628 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
3630 if (m_threads[threadNdx]->getStatus() != tcu::ThreadUtil::Thread::THREADSTATUS_RUNNING) in iterate()
3636 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
3637 m_threads[threadNdx]->join(); in iterate()
3645 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
3647 if (m_threads[threadNdx]->getStatus() != tcu::ThreadUtil::Thread::THREADSTATUS_RUNNING) in iterate()
3648 m_threads[threadNdx]->join(); in iterate()
3672 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
3674 if (m_threads[threadNdx]->getMessageCount() > indices[threadNdx]) in iterate()
3676 firstThread = threadNdx; in iterate()
3685 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
3688 if (m_threads[threadNdx]->getMessageCount() <= indices[threadNdx]) in iterate()
3691 …if ((m_threads[threadNdx]->getMessage(indices[threadNdx]).getTime() - m_beginTimeUs) < (m_threads[… in iterate()
3692 firstThread = threadNdx; in iterate()
3707 for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++) in iterate() local
3709 const tcu::ThreadUtil::Thread::ThreadStatus status = m_threads[threadNdx]->getStatus(); in iterate()