/external/deqp/framework/opengl/simplereference/ |
H A D | sglrGLContext.cpp | 711 deInt32 GLContext::getAttribLocation (deUint32 program, const char *name) argument 713 return m_wrapper->glGetAttribLocation(program, name); 775 deInt32 GLContext::getUniformLocation (deUint32 program, const char *name) argument 777 return m_wrapper->glGetUniformLocation(program, name); 854 glu::ShaderProgram* program = DE_NULL; local 857 program = new glu::ShaderProgram(m_context, glu::makeVtxFragSources(shader->m_vertSrc, shader->m_fragSrc)); 859 program = new glu::ShaderProgram(m_context, 864 if (!program->isOk()) 866 m_log << *program; local 867 delete program; 872 m_log << *program; local 878 deleteProgram(deUint32 program) argument 893 useProgram(deUint32 program) argument [all...] |
/external/deqp/framework/referencerenderer/ |
H A D | rrRenderer.cpp | 506 void flatshadeVertices (const Program& program, ContainerType& list) argument 509 const std::vector<rr::VertexVaryingInfo>& fragInputs = (program.geometryShader) ? (program.geometryShader->getOutputs()) : (program.vertexShader->getOutputs()); 521 const Program& program, 534 const std::vector<rr::VertexVaryingInfo>& fragInputs = (program.geometryShader) ? (program.geometryShader->getOutputs()) : (program.vertexShader->getOutputs()); 711 const Program& program, 721 const std::vector<rr::VertexVaryingInfo>& fragInputs = (program 520 clipPrimitives(std::vector<pa::Triangle>& list, const Program& program, bool clipWithZPlanes, VertexPacketAllocator& vpalloc) argument 710 clipPrimitives(std::vector<pa::Line>& list, const Program& program, bool clipWithZPlanes, VertexPacketAllocator& vpalloc) argument 781 clipPrimitives(std::vector<pa::Point>& list, const Program& program, bool clipWithZPlanes, VertexPacketAllocator& vpalloc) argument 1025 writeFragmentPackets(const RenderState& state, const RenderTarget& renderTarget, const Program& program, const FragmentPacket* fragmentPackets, int numRasterizedPackets, rr::FaceType facetype, const std::vector<rr::GenericVec4>& fragmentOutputArray, const float* depthValues, std::vector<Fragment>& fragmentBuffer) argument 1098 rasterizePrimitive(const RenderState& state, const RenderTarget& renderTarget, const Program& program, const pa::Triangle& triangle, const tcu::IVec4& renderTargetRect, RasterizationInternalBuffers& buffers) argument 1166 rasterizePrimitive(const RenderState& state, const RenderTarget& renderTarget, const Program& program, const pa::Line& line, const tcu::IVec4& renderTargetRect, RasterizationInternalBuffers& buffers) argument 1219 rasterizePrimitive(const RenderState& state, const RenderTarget& renderTarget, const Program& program, const pa::Point& point, const tcu::IVec4& renderTargetRect, RasterizationInternalBuffers& buffers) argument 1285 rasterize(const RenderState& state, const RenderTarget& renderTarget, const Program& program, const ContainerType& list) argument 1329 drawBasicPrimitives(const RenderState& state, const RenderTarget& renderTarget, const Program& program, ContainerType& primList, VertexPacketAllocator& vpalloc) argument 1386 drawGeometryShaderOutputAsPrimitives(const RenderState& state, const RenderTarget& renderTarget, const Program& program, VertexPacket* const* vertices, size_t numVertices, VertexPacketAllocator& vpalloc) argument 1405 drawWithGeometryShader(const RenderState& state, const RenderTarget& renderTarget, const Program& program, std::vector<typename PrimitiveTypeTraits<DrawPrimitiveType>::Type>& input, DrawContext& drawContext) argument 1473 drawAsPrimitives(const RenderState& state, const RenderTarget& renderTarget, const Program& program, VertexPacket* const* vertices, int numVertices, DrawContext& drawContext, VertexPacketAllocator& vpalloc) argument [all...] |
/external/deqp/modules/egl/ |
H A D | teglRenderTests.cpp | 528 void drawGLES2 (const glw::Functions& gl, const Program& program, const DrawPrimitiveOp& drawOp) argument 530 const GLES2Program& gles2Program = dynamic_cast<const GLES2Program&>(program); 607 void draw (const glw::Functions& gl, EGLint api, const Program& program, const DrawPrimitiveOp& drawOp) argument 611 case EGL_OPENGL_ES2_BIT: drawGLES2(gl, program, drawOp); break; 612 case EGL_OPENGL_ES3_BIT_KHR: drawGLES2(gl, program, drawOp); break; 837 RenderTestThread (const Library& egl, EGLDisplay display, EGLSurface surface, EGLContext context, EGLint api, const glw::Functions& gl, const Program& program, const std::vector<DrawOpPacket>& packets) argument 844 , m_program (program)
|
/external/deqp/modules/gles2/functional/ |
H A D | es2fClippingTests.cpp | 519 PositionColorShader program; local 541 const deUint32 programId = ctx.createProgram(&program); 656 PositionColorShader program; local 680 const deUint32 programId = ctx.createProgram(&program); 879 PositionColorShader program; local 908 const deUint32 programId = ctx.createProgram(&program); 1138 PositionColorShader program; local 1139 const deUint32 programId = ctx.createProgram(&program);
|
H A D | es2fFboRenderTest.cpp | 87 void setColor (sglr::Context& gl, deUint32 program, const tcu::Vec4& color) argument 89 gl.useProgram(program); 90 gl.uniform4fv(gl.getUniformLocation(program, "u_color"), 1, color.getPtr()); 140 void setUnit (sglr::Context& gl, deUint32 program, int unitNdx) argument 142 gl.useProgram(program); 143 gl.uniform1i(gl.getUniformLocation(program, "u_sampler0"), unitNdx); 202 void setUnits (sglr::Context& gl, deUint32 program, int unit0, int unit1) argument 204 gl.useProgram(program); 205 gl.uniform1i(gl.getUniformLocation(program, "u_sampler0"), unit0); 206 gl.uniform1i(gl.getUniformLocation(program, "u_sampler [all...] |
H A D | es2fShaderApiTests.cpp | 294 void logProgram (TestLog& log, glu::RenderContext& renderCtx, glu::Program& program, ShaderAllocator& shaders) argument 296 log << TestLog::ShaderProgram(program.getLinkStatus(), program.getInfoLog()); 309 void logVertexFragmentProgram (TestLog& log, glu::RenderContext& renderCtx, glu::Program& program, glu::Shader& vertShader, glu::Shader& fragShader) argument 313 log << TestLog::ShaderProgram(program.getLinkStatus(), program.getInfoLog()); 386 // Base class for simple program API tests 428 const GLuint program = glCreateProgram(); local 430 TCU_CHECK(program != 0); 432 glAttachShader(program, m_vertShade 783 buildProgram(glu::Program& program, ShaderAllocator& shaders) argument 800 verify(glu::Program& program, const glu::ProgramInfo& reference) argument 889 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 911 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 934 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 957 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 981 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 1004 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument [all...] |
/external/deqp/modules/gles3/functional/ |
H A D | es3fClippingTests.cpp | 522 PositionColorShader program; local 544 const deUint32 programId = ctx.createProgram(&program); 659 PositionColorShader program; local 683 const deUint32 programId = ctx.createProgram(&program); 883 PositionColorShader program; local 912 const deUint32 programId = ctx.createProgram(&program); 1142 PositionColorShader program; local 1143 const deUint32 programId = ctx.createProgram(&program);
|
H A D | es3fShaderApiTests.cpp | 188 void drawWithProgram (glu::RenderContext& renderCtx, deUint32 program) argument 201 gl.useProgram(program); 208 glu::draw(renderCtx, program, DE_LENGTH_OF_ARRAY(vertexArrays), &vertexArrays[0], glu::pr::Triangles(DE_LENGTH_OF_ARRAY(quadIndices), &quadIndices[0])); 348 void logProgram (TestLog& log, glu::RenderContext& renderCtx, glu::Program& program, ShaderAllocator& shaders) argument 350 log << TestLog::ShaderProgram(program.getLinkStatus(), program.getInfoLog()); 363 void logVertexFragmentProgram (TestLog& log, glu::RenderContext& renderCtx, glu::Program& program, glu::Shader& vertShader, glu::Shader& fragShader) argument 367 log << TestLog::ShaderProgram(program.getLinkStatus(), program.getInfoLog()); 440 // Base class for simple program AP 482 const GLuint program = glCreateProgram(); local 843 buildProgram(glu::Program& program, ShaderAllocator& shaders) argument 860 verify(glu::Program& program, const glu::ProgramInfo& reference) argument 949 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 971 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 994 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 1017 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 1041 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 1064 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 1152 getProgramBinary(ProgramBinary& out, GLuint program) argument 1173 loadProgramBinary(ProgramBinary& binary, GLuint program) argument 1294 setUniformsRandom(glu::ShaderProgram& program) argument 1317 verifyUniformInt(glu::ShaderProgram& program, const std::string& name) argument 1331 verifyUniformFloat(glu::ShaderProgram& program, const std::string& name) argument 1345 verifyUniformsReset(glu::ShaderProgram& program) argument 1365 log << program; local 1417 buildProgram(glu::Program& program, ShaderAllocator& shaders) argument 1434 verify(glu::Program& program, const ProgramBinary& binary) argument 1514 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 1536 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 1559 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 1582 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 1606 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument 1629 executeForProgram(glu::Program& program, ShaderAllocator& shaders) argument [all...] |
H A D | es3fShaderDerivateTests.cpp | 568 virtual void setupRenderState (deUint32 program) { DE_UNREF(program); } argument 648 const glu::ShaderProgram program (m_context.getRenderContext(), glu::makeVtxFragSources(genVertexSource(m_coordDataType, m_coordPrecision), m_fragmentSrc)); 659 m_testCtx.getLog() << program; 661 if (!program.isOk()) 728 gl.useProgram(program.getProgram()); 731 const int scaleLoc = gl.getUniformLocation(program.getProgram(), "u_scale"); 732 const int biasLoc = gl.getUniformLocation(program.getProgram(), "u_bias"); 761 gls::setupDefaultUniforms(m_context.getRenderContext(), program.getProgram()); 762 setupRenderState(program 1323 setupRenderState(deUint32 program) argument [all...] |
H A D | es3fShaderStateQueryTests.cpp | 111 bool verifyProgramParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLenum pname, GLenum reference) argument 114 gl.glGetProgramiv(program, pname, &state); 119 void verifyActiveUniformParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLuint index, GLenum pname, GLenum reference) argument 122 gl.glGetActiveUniformsiv(program, 1, &index, pname, &state); 128 void verifyActiveUniformBlockParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLuint blockIndex, GLenum pname, GLenum reference) argument 131 gl.glGetActiveUniformBlockiv(program, blockIndex, pname, &state); 257 void verifyUniformValue1f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x) argument 262 gl.glGetUniformfv(program, location, state); 282 void verifyUniformValue2f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y) argument 287 gl.glGetUniformfv(program, locatio 310 verifyUniformValue3f(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y, float z) argument 341 verifyUniformValue4f(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y, float z, float w) argument 375 verifyUniformValue1i(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x) argument 400 verifyUniformValue2i(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y) argument 428 verifyUniformValue3i(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y, GLint z) argument 459 verifyUniformValue4i(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w) argument 493 verifyUniformValue1ui(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLuint x) argument 518 verifyUniformValue2ui(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLuint x, GLuint y) argument 546 verifyUniformValue3ui(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLuint x, GLuint y, GLuint z) argument 577 verifyUniformValue4ui(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLuint x, GLuint y, GLuint z, GLuint w) argument 612 verifyUniformValues(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, const GLfloat* values) argument 635 verifyUniformMatrixValues(tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, const GLfloat* values, bool transpose) argument 1242 GLuint program = glCreateProgram(); local 1343 GLuint program = glCreateProgram(); local 1374 GLuint program = glCreateProgram(); local 1419 GLuint program = glCreateProgram(); local 1522 GLuint program = glCreateProgram(); local 1675 GLuint program = glCreateProgram(); local 1770 GLuint program = glCreateProgram(); local 1915 GLuint program = glCreateProgram(); local 2102 GLuint program = glCreateProgram(); local 3005 GLuint program = glCreateProgram(); local 3076 GLuint program = glCreateProgram(); local 3147 GLuint program = glCreateProgram(); local 3219 GLuint program = glCreateProgram(); local 3307 GLuint program = glCreateProgram(); local 3370 GLuint program = glCreateProgram(); local 3477 GLuint program = glCreateProgram(); local [all...] |
H A D | es3fTextureSpecificationTests.cpp | 163 void renderTex (tcu::Surface& dst, deUint32 program, int width, int height); 229 void TextureSpecCase::renderTex (tcu::Surface& dst, deUint32 program, int width, int height) argument 237 sglr::drawQuad(*getCurrentContext(), program, tcu::Vec3(-1.0f, -1.0f, 0.0f), tcu::Vec3(-1.0f + w*2.0f, -1.0f + h*2.0f, 0.0f)); local
|
/external/deqp/modules/gles3/performance/ |
H A D | es3pDepthTests.cpp | 940 const GLuint program = geom.m_program.getProgram(); local 942 gl.useProgram(program); 943 gl.uniform1i(gl.getUniformLocation(program, "u_iterations"), calibrator.getCallCount()); 973 const GLuint program = occluded.m_program.getProgram(); local 979 gl.useProgram(program); 980 gl.uniform1i(gl.getUniformLocation(program, "u_iterations"), workload); 1699 const GLuint program = occluded.m_program.getProgram(); local 1705 gl.useProgram(program); 1706 gl.uniform1i(gl.getUniformLocation(program, "u_iterations"), workload);
|
/external/deqp/modules/gles31/functional/ |
H A D | es31fDrawBuffersIndexedTests.cpp | 810 const rr::Program program (&vertexShader, &fragmentShader); 811 const rr::DrawCommand command (renderState, renderTarget, program, DE_LENGTH_OF_ARRAY(vertexAttribs), vertexAttribs, primitives); 956 const glu::ShaderProgram& program) 963 glu::draw(renderContext, program.getProgram(), 1, vertexArrays, glu::pr::Triangles(6)); 975 const glu::ShaderProgram program (gl, genShaderSources(preCommonBlendState, postCommonBlendState, drawBuffers)); 986 log << program; local 989 gl.useProgram(program.getProgram()); 1004 renderGLQuad(renderContext, program); 955 renderGLQuad(glu::RenderContext& renderContext, const glu::ShaderProgram& program) argument
|
H A D | es31fLayoutBindingTests.cpp | 370 // Generate the shader program - note: this must be done after deciding the binding points 382 const deUint32 program = m_program->getProgram(); local 384 m_shaderProgramPosLoc = gl.getAttribLocation(program, "a_position"); 385 m_shaderProgramArrayNdxLoc = gl.getUniformLocation(program, "u_arrayNdx"); 737 // Generate the shader program - note: this must be done after deciding the binding points 913 // Set the viewport and enable the shader program 1209 // Set the viewport and enable the shader program 1504 // Set the viewport and enable the shader program
|
H A D | es31fOpaqueTypeIndexingTests.cpp | 95 static void uploadUniformIndices (const glw::Functions& gl, deUint32 program, const char* varPrefix, int numIndices, const int* indices) argument 100 const int loc = gl.getUniformLocation(program, varName.c_str());
|
/external/deqp/modules/glshared/ |
H A D | glsLifetimeTests.cpp | 443 void ShaderProgramAttacher::attach (GLuint shader, GLuint program) argument 446 glAttachShader(program, shader), 450 void ShaderProgramAttacher::detach (GLuint shader, GLuint program) argument 453 glDetachShader(program, shader), 457 GLuint ShaderProgramAttacher::getAttachment (GLuint program) argument 464 gl().getAttachedShaders(program, shadersLen, &numShaders, shaders); 507 void ShaderProgramInputAttacher::drawContainer (GLuint program, Surface& dst) argument 510 Random rnd (program); 516 gl().attachShader(program, vtxShader.getShader()); 517 gl().linkProgram(program); [all...] |
H A D | glsLongStressCase.cpp | 927 template <> const char* GLObjectManager<Program>::objTypeName (void) { return "program"; } 1217 << TestLog::Message << "Using " << m_programContexts.size() << " program(s)" << TestLog::EndMessage; 1224 log << TestLog::Section("ShaderProgram" + toString(progCtxNdx), "Shader program " + toString(progCtxNdx)) << prog << TestLog::EndSection; 1297 Program& program = m_programs->get(programName); member in namespace:deqp::gls::LongStressCaseInternal 1402 program.setAttribute(curAttrBuf, 0, programContext.attributes[attrNdx], programResources.shaderNameManglingSuffix); 1434 program.setAttribute(attrBuf, programResources.attrDataOffsets[i], programContext.attributes[i], programResources.shaderNameManglingSuffix); 1442 program.setAttributeClientMem(&programResources.attrDataBuf[programResources.attrDataOffsets[i]], programContext.attributes[i], programResources.shaderNameManglingSuffix); 1455 program.use(); 1456 program.setRandomUniforms(programContext.uniforms, programResources.shaderNameManglingSuffix, m_rnd); 1476 program [all...] |
H A D | glsShaderLibrary.cpp | 196 void parsePipelineProgram (ShaderCase::PipelineProgram& program); 1062 void ShaderParser::parsePipelineProgram (ShaderCase::PipelineProgram& program) argument 1115 parseError(string("invalid pipeline program value: " + m_curTokenStr)); 1120 parseError("program pipeline object must have active stages"); 1123 program.activeStageBits = activeStages; 1124 program.requirements.swap(requirements); 1125 program.vertexSources.swap(vertexSources); 1126 program.fragmentSources.swap(fragmentSources); 1127 program.tessCtrlSources.swap(tessellationCtrlSources); 1128 program [all...] |
H A D | glsShaderRenderCase.cpp | 409 log << *m_program; // Always log shader program. 556 static void getDefaultVertexArrays (const glw::Functions& gl, const QuadGrid& quadGrid, deUint32 program, vector<VertexArrayBinding>& vertexArrays) argument 593 int loc = gl.getAttribLocation(program, matrices[matNdx].name); 627 // Setup program.
|
H A D | glsUniformBlockCase.cpp | 1167 void getGLUniformLayout (const glw::Functions& gl, UniformLayout& layout, deUint32 program) argument 1172 gl.getProgramiv(program, GL_ACTIVE_UNIFORMS, &numActiveUniforms); 1173 gl.getProgramiv(program, GL_ACTIVE_UNIFORM_BLOCKS, &numActiveBlocks); 1186 gl.getActiveUniformBlockiv(program, (deUint32)blockNdx, GL_UNIFORM_BLOCK_DATA_SIZE, &size); 1187 gl.getActiveUniformBlockiv(program, (deUint32)blockNdx, GL_UNIFORM_BLOCK_NAME_LENGTH, &nameLen); 1188 gl.getActiveUniformBlockiv(program, (deUint32)blockNdx, GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS, &numBlockUniforms); 1194 gl.getActiveUniformBlockName(program, (deUint32)blockNdx, (glw::GLsizei)nameBuf.size(), DE_NULL, &nameBuf[0]); 1201 gl.getActiveUniformBlockiv(program, (deUint32)blockNdx, GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES, &entry.activeUniformIndices[0]); 1223 gl.getActiveUniformsiv(program, (glw::GLsizei)uniformIndices.size(), &uniformIndices[0], GL_UNIFORM_TYPE, &types[0]); 1224 gl.getActiveUniformsiv(program, (gl 1434 log << program; local 1866 checkIndexQueries(deUint32 program, const UniformLayout& layout) const argument [all...] |
H A D | glsVertexArrayTests.cpp | 1150 deUint32 program = 0; local 1159 program = m_ctx.createProgram(m_program); 1161 m_ctx.useProgram(program); 1164 m_ctx.uniform1f(m_ctx.getUniformLocation(program, "u_coordScale"), coordScale); 1165 m_ctx.uniform1f(m_ctx.getUniformLocation(program, "u_colorScale"), colorScale); 1180 deUint32 loc = m_ctx.getAttribLocation(program, attribName.str().c_str()); 1199 deUint32 loc = m_ctx.getAttribLocation(program, attribName.str().c_str()); 1209 m_ctx.deleteProgram(program);
|
/external/mesa3d/src/gallium/drivers/i915/ |
H A D | i915_context.h | 110 uint *program; member in struct:i915_fragment_shader 119 * and doesn't require regenerating/changing the fragment program to
|
/external/mesa3d/src/gallium/drivers/nv50/codegen/ |
H A D | nv50_ir_ra.cpp | 195 RegAlloc(Program *program) : prog(program), sequence(0) { } argument
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_blorp_blit.cpp | 344 * The bulk of the work done by the WM program is to wrap and unwrap the 560 /* True if, at the point in the program currently being compiled, the 1026 * program we haven't read from the MCS buffer. 1113 * program we don't have access to the MCS buffer. 1699 * program to run once per sample rather than once per pixel, because 1709 * arrange for the WM program to run once per sample rather than once 1882 const GLuint *program = prog.compile(brw, &program_size); local 1885 program, program_size,
|
/external/mesa3d/src/mesa/main/ |
H A D | ffvertex_prog.c | 31 * Create a vertex program to execute the current fixed function T&L pipeline. 42 #include "program/program.h" 43 #include "program/prog_cache.h" 44 #include "program/prog_instruction.h" 45 #include "program/prog_parameter.h" 46 #include "program/prog_print.h" 47 #include "program/prog_statevars.h" 277 * generated program with line/function references for each 307 struct gl_vertex_program *program; member in struct:tnl_program 1617 create_new_program( const struct state_key *key, struct gl_vertex_program *program, GLboolean mvp_with_dp4, GLuint max_temps) argument [all...] |