Home | History | Annotate | Download | only in egl

Lines Matching defs:Program

2  * drawElements Quality Program EGL Module
77 class Program;
97 SharedPtr<Program> popProgram (int index);
98 const SharedPtr<Program> getProgram (int index) const { return m_programs[index]; }
99 void addProgram (SharedPtr<Program> program) { m_programs.push_back(program); }
106 std::vector<SharedPtr<Program> > m_programs;
136 SharedPtr<Program> GLES2ResourceManager::popProgram (int index)
138 SharedPtr<Program> program = m_programs[index];
142 return program;
1456 class Program : public Object
1459 Program (SharedPtr<tcu::ThreadUtil::Event> event, SharedPtr<FenceSync> sync);
1467 GLuint program;
1472 Program::Program (SharedPtr<tcu::ThreadUtil::Event> event, SharedPtr<FenceSync> sync)
1473 : Object ("Program", event, sync)
1475 , program (0)
1484 CreateProgram (SharedPtr<Program>& program, bool useSync, bool serverSync);
1488 SharedPtr<Program> m_program;
1491 CreateProgram::CreateProgram (SharedPtr<Program>& program, bool useSync, bool serverSync)
1494 program = SharedPtr<Program>(new Program(getEvent(), getSync()));
1495 m_program = program;
1500 GLuint program = 0;
1503 program = glCreateProgram();
1505 thread.newMessage() << "End -- " << program << " = glCreateProgram()" << tcu::ThreadUtil::Message::End;
1507 m_program->program = program;
1513 DeleteProgram (SharedPtr<Program> program, bool useSync, bool serverSync);
1517 SharedPtr<Program> m_program;
1520 DeleteProgram::DeleteProgram (SharedPtr<Program> program, bool useSync, bool serverSync)
1522 , m_program (program)
1529 GLuint program = m_program->program;
1531 thread.newMessage() << "Begin -- glDeleteProgram(" << program << ")" << tcu::ThreadUtil::Message::End;
1532 GLU_CHECK_CALL(glDeleteProgram(program));
1535 m_program->program = 0;
1541 AttachShader (SharedPtr<Program> sharder, SharedPtr<Shader> shader, bool useSync, bool serverSync);
1545 SharedPtr<Program> m_program;
1549 AttachShader::AttachShader (SharedPtr<Program> program, SharedPtr<Shader> shader, bool useSync, bool serverSync)
1551 , m_program (program)
1567 thread.newMessage() << "Begin -- glAttachShader(" << m_program->program << ", " << m_shader->shader << ")" << tcu::ThreadUtil::Message::End;
1568 GLU_CHECK_CALL(glAttachShader(m_program->program, m_shader->shader));
1582 DetachShader (SharedPtr<Program> sharder, GLenum type, bool useSync, bool serverSync);
1586 SharedPtr<Program> m_program;
1590 DetachShader::DetachShader (SharedPtr<Program> program, GLenum type, bool useSync, bool serverSync)
1592 , m_program (program)
1615 thread.newMessage() << "Begin -- glDetachShader(" << m_program->program << ", " << m_program->runtimeVertexShader << ")" << tcu::ThreadUtil::Message::End;
1616 GLU_CHECK_CALL(glDetachShader(m_program->program, m_program->runtimeVertexShader));
1622 thread.newMessage() << "Begin -- glDetachShader(" << m_program->program << ", " << m_program->runtimeFragmentShader << ")" << tcu::ThreadUtil::Message::End;
1623 GLU_CHECK_CALL(glDetachShader(m_program->program, m_program->runtimeFragmentShader));
1634 LinkProgram (SharedPtr<Program> program, bool useSync, bool serverSync);
1638 SharedPtr<Program> m_program;
1641 LinkProgram::LinkProgram (SharedPtr<Program> program, bool useSync, bool serverSync)
1643 , m_program (program)
1646 program->linked = true;
1651 GLuint program = m_program->program;
1653 thread.newMessage() << "Begin -- glLinkProgram(" << program << ")" << tcu::ThreadUtil::Message::End;
1654 GLU_CHECK_CALL(glLinkProgram(program));
1661 RenderBuffer (SharedPtr<Program> program, SharedPtr<Buffer> buffer, bool useSync, bool serverSync);
1665 SharedPtr<Program> m_program;
1669 RenderBuffer::RenderBuffer (SharedPtr<Program> program, SharedPtr<Buffer> buffer, bool useSync, bool serverSync)
1671 , m_program (program)
1674 readGLObject(SharedPtr<Object>(program));
1688 thread.newMessage() << "Begin -- glUseProgram(" << m_program->program << ")" << tcu::ThreadUtil::Message::End;
1689 GLU_CHECK_CALL(glUseProgram(m_program->program));
1692 thread.newMessage() << "Begin -- glGetAttribLocation(" << m_program->program << ", \"a_pos\")" << tcu::ThreadUtil::Message::End;
1693 GLint posLoc = glGetAttribLocation(m_program->program, "a_pos");
1729 RenderTexture (SharedPtr<Program> program, SharedPtr<Texture> texture, bool useSync, bool serverSync);
1733 SharedPtr<Program> m_program;
1737 RenderTexture::RenderTexture (SharedPtr<Program> program, SharedPtr<Texture> texture, bool useSync, bool serverSync)
1739 , m_program (program)
1742 readGLObject(SharedPtr<Object>(program));
1756 thread.newMessage() << "Begin -- glUseProgram(" << m_program->program << ")" << tcu::ThreadUtil::Message::End;
1757 GLU_CHECK_CALL(glUseProgram(m_program->program));
1764 thread.newMessage() << "Begin -- glGetUniformLocation(" << m_program->program << ", \"u_sampler\")" << tcu::ThreadUtil::Message::End;
1765 GLint samplerPos = glGetUniformLocation(m_program->program, "u_sampler");
1774 thread.newMessage() << "Begin -- glGetAttribLocation(" << m_program->program << ", \"a_pos\")" << tcu::ThreadUtil::Message::End;
1775 GLint posLoc = glGetAttribLocation(m_program->program, "a_pos");
2404 SharedPtr<GLES2ThreadTest::Program> program = m_threads[threadNdx]->context->resourceManager->getProgram(programNdx);
2406 // Program that can be detached
2407 if (program->vertexShader || program->fragmentShader)
2413 if (program->vertexShader)
2415 else if (program->fragmentShader)
2424 if (program->vertexShader)
2426 else if (program->fragmentShader)
2433 // Program that can be attached vertex shader
2434 if (!program->vertexShader)
2442 // Program that can be attached fragment shader
2443 if (!program->fragmentShader)
2451 // Program that can be linked
2452 if (program->vertexShader && program->fragmentShader)
2538 // Has program
2545 // Has program that can be linked
2552 // has program with attachments
2559 // Has program and shader pair that can be attached
2728 SharedPtr<GLES2ThreadTest::Program> program;
2729 m_threads[threadNdx]->addOperation(new GLES2ThreadTest::CreateProgram(program, m_config.useFenceSync, m_config.serverSync));
2730 m_threads[threadNdx]->context->resourceManager->addProgram(program);
2740 SharedPtr<GLES2ThreadTest::Program> program = m_threads[threadNdx]->context->resourceManager->popProgram(attachProgramNdx);
2743 m_threads[threadNdx]->addOperation(new GLES2ThreadTest::AttachShader(program, shader, m_config.useFenceSync, m_config.serverSync));
2745 m_threads[threadNdx]->context->resourceManager->addProgram(program);
2752 SharedPtr<GLES2ThreadTest::Program> program = m_threads[threadNdx]->context->resourceManager->popProgram(detachableProgramNdx);
2753 m_threads[threadNdx]->addOperation(new GLES2ThreadTest::DetachShader(program, detachShaderType, m_config.useFenceSync, m_config.serverSync));
2754 m_threads[threadNdx]->context->resourceManager->addProgram(program);
2760 SharedPtr<GLES2ThreadTest::Program> program = m_threads[threadNdx]->context->resourceManager->popProgram(linkableProgramNdx);
2761 m_threads[threadNdx]->addOperation(new GLES2ThreadTest::LinkProgram(program, m_config.useFenceSync, m_config.serverSync));
2762 m_threads[threadNdx]->context->resourceManager->addProgram(program);
3117 SharedPtr<GLES2ThreadTest::Program> program;
3145 m_threads[0]->addOperation(new GLES2ThreadTest::CreateProgram(program, m_config.useFenceSync, m_config.serverSync));
3146 m_threads[0]->addOperation(new GLES2ThreadTest::AttachShader(program, fragmentShader, m_config.useFenceSync, m_config.serverSync));
3147 m_threads[0]->addOperation(new GLES2ThreadTest::AttachShader(program, vertexShader, m_config.useFenceSync, m_config.serverSync));
3149 m_threads[0]->addOperation(new GLES2ThreadTest::LinkProgram(program, m_config.useFenceSync, m_config.serverSync));
3174 m_threads[0]->addOperation(new GLES2ThreadTest::RenderBuffer(program, buffer, m_config.useFenceSync, m_config.serverSync));
3175 m_threads[1]->addOperation(new GLES2ThreadTest::RenderBuffer(program, buffer, m_config.useFenceSync, m_config.serverSync));
3195 m_threads[0]->addOperation(new GLES2ThreadTest::DeleteProgram(program, m_config.useFenceSync, m_config.serverSync));
3204 SharedPtr<GLES2ThreadTest::Program> program;
3233 m_threads[0]->addOperation(new GLES2ThreadTest::CreateProgram(program, m_config.useFenceSync, m_config.serverSync));
3234 m_threads[0]->addOperation(new GLES2ThreadTest::AttachShader(program, fragmentShader, m_config.useFenceSync, m_config.serverSync));
3235 m_threads[0]->addOperation(new GLES2ThreadTest::AttachShader(program, vertexShader, m_config.useFenceSync, m_config.serverSync));
3237 m_threads[0]->addOperation(new GLES2ThreadTest::LinkProgram(program, m_config.useFenceSync, m_config.serverSync));
3281 m_threads[0]->addOperation(new GLES2ThreadTest::RenderTexture(program, texture, m_config.useFenceSync, m_config.serverSync));
3282 m_threads[1]->addOperation(new GLES2ThreadTest::RenderTexture(program, texture, m_config.useFenceSync, m_config.serverSync));
3299 m_threads[0]->addOperation(new GLES2ThreadTest::DeleteProgram(program, m_config.useFenceSync, m_config.serverSync));
3308 SharedPtr<GLES2ThreadTest::Program> program;
3340 m_threads[0]->addOperation(new GLES2ThreadTest::CreateProgram(program, m_config.useFenceSync, m_config.serverSync));
3341 m_threads[0]->addOperation(new GLES2ThreadTest::AttachShader(program, fragmentShader, m_config.useFenceSync, m_config.serverSync));
3342 m_threads[0]->addOperation(new GLES2ThreadTest::AttachShader(program, vertexShader, m_config.useFenceSync, m_config.serverSync));
3344 m_threads[0]->addOperation(new GLES2ThreadTest::LinkProgram(program, m_config.useFenceSync, m_config.serverSync));
3422 m_threads[0]->addOperation(new GLES2ThreadTest::RenderTexture(program, texture, m_config.useFenceSync, m_config.serverSync));
3423 m_threads[1]->addOperation(new GLES2ThreadTest::RenderTexture(program, texture, m_config.useFenceSync, m_config.serverSync));
3448 m_threads[0]->addOperation(new GLES2ThreadTest::DeleteProgram(program, m_config.useFenceSync, m_config.serverSync));
3528 SharedPtr<GLES2ThreadTest::Program> program;
3530 m_threads[0]->addOperation(new GLES2ThreadTest::CreateProgram(program, m_config.useFenceSync, m_config.serverSync));
3537 m_threads[0]->addOperation(new GLES2ThreadTest::AttachShader(program, vertexShader, m_config.useFenceSync, m_config.serverSync));
3538 m_threads[0]->addOperation(new GLES2ThreadTest::AttachShader(program, fragmentShader, m_config.useFenceSync, m_config.serverSync));
3542 m_threads[1]->addOperation(new GLES2ThreadTest::AttachShader(program, vertexShader, m_config.useFenceSync, m_config.serverSync));
3543 m_threads[1]->addOperation(new GLES2ThreadTest::AttachShader(program, fragmentShader, m_config.useFenceSync, m_config.serverSync));
3549 // Link program
3551 m_threads[0]->addOperation(new GLES2ThreadTest::LinkProgram(program, m_config.useFenceSync, m_config.serverSync));
3553 m_threads[1]->addOperation(new GLES2ThreadTest::LinkProgram(program, m_config.useFenceSync, m_config.serverSync));
3558 // Link program
3561 m_threads[0]->addOperation(new GLES2ThreadTest::DetachShader(program, GL_VERTEX_SHADER, m_config.useFenceSync, m_config.serverSync));
3562 m_threads[0]->addOperation(new GLES2ThreadTest::DetachShader(program, GL_FRAGMENT_SHADER, m_config.useFenceSync, m_config.serverSync));
3566 m_threads[1]->addOperation(new GLES2ThreadTest::DetachShader(program, GL_VERTEX_SHADER, m_config.useFenceSync, m_config.serverSync));
3567 m_threads[1]->addOperation(new GLES2ThreadTest::DetachShader(program, GL_FRAGMENT_SHADER, m_config.useFenceSync, m_config.serverSync));
3577 m_threads[0]->addOperation(new GLES2ThreadTest::DeleteProgram(program, m_config.useFenceSync, m_config.serverSync));
3579 m_threads[1]->addOperation(new GLES2ThreadTest::DeleteProgram(program, m_config.useFenceSync, m_config.serverSync));
4031 TestCaseGroup* programTests = new TestCaseGroup(ctx, "programs", "Program management tests");
4042 programTests->addChild(new GLES2ThreadedSharingTest(ctx, config, "create_destroy", "Create and delete program"));
4054 programTests->addChild(new GLES2ThreadedSharingTest(ctx, config, "attach", "Create, attach shaders and delete program"));
4066 programTests->addChild(new GLES2ThreadedSharingTest(ctx, config, "link", "Create, attach shaders, link and delete program"));
4625 TestCaseGroup* programTests = new TestCaseGroup(ctx, "programs", "Program management tests");
4628 TestCaseGroup* createProgramTests = new TestCaseGroup(ctx, "create_destroy", "Program create and destroy tests");
4654 TestCaseGroup* texImage2DTests = new TestCaseGroup(ctx, "attach_detach", "Program create, destroy, attach and detach tests");
4748 TestCaseGroup* texSubImage2DTests = new TestCaseGroup(ctx, "link", "Program create, destroy, attach and link tests");