Searched defs:shProg (Results 1 - 12 of 12) sorted by relevance

/external/mesa3d/src/mesa/state_tracker/
H A Dst_cb_program.c79 st_use_program(struct gl_context *ctx, struct gl_shader_program *shProg) argument
H A Dst_draw.c133 struct gl_shader_program *shProg[3] = { local
143 if (shProg[j] == NULL || !shProg[j]->LinkStatus)
146 for (i = 0; i < shProg[j]->NumUserUniformStorage; i++) {
147 const struct gl_uniform_storage *u = &shProg[j]->UniformStorage[i];
H A Dst_program.c1103 struct gl_shader_program *shProg[3] = { local
1113 if (shProg[j] == NULL)
1116 for (i = 0; i < shProg[j]->NumShaders; i++) {
1119 switch (shProg[j]->Shaders[i]->Type) {
1121 sh = (i != 0) ? NULL : shProg[j]->Shaders[i];
1124 sh = (i != 1) ? NULL : shProg[j]->Shaders[i];
1127 sh = (i != 2) ? NULL : shProg[j]->Shaders[i];
1136 printf("GLSL shader %u of %u:\n", i, shProg[j]->NumShaders);
1237 struct gl_shader_program *shProg = (struct gl_shader_program *) data; local
1240 for (i = 0; i < shProg
[all...]
/external/mesa3d/src/mesa/main/
H A Dshader_query.cpp48 struct gl_shader_program *const shProg = local
50 if (!shProg)
71 shProg->AttributeBindings->put(index + VERT_ATTRIB_GENERIC0, name);
85 struct gl_shader_program *shProg; local
87 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveAttrib");
88 if (!shProg)
91 if (!shProg->LinkStatus) {
97 if (shProg->_LinkedShaders[MESA_SHADER_VERTEX] == NULL) {
102 exec_list *const ir = shProg->_LinkedShaders[MESA_SHADER_VERTEX]->ir;
138 struct gl_shader_program *const shProg local
186 _mesa_count_active_attribs(struct gl_shader_program *shProg) argument
212 _mesa_longest_attribute_name_length(struct gl_shader_program *shProg) argument
251 struct gl_shader_program *const shProg = local
296 struct gl_shader_program *const shProg = local
352 struct gl_shader_program *const shProg = local
[all...]
H A Dshaderobj.c189 * Set ptr to point to shProg.
192 * Then set ptr to point to shProg, incrementing its refcount.
197 struct gl_shader_program *shProg)
200 if (*ptr == shProg) {
227 if (shProg) {
228 shProg->RefCount++;
231 (void *) shProg, shProg->Name, shProg->RefCount);
233 *ptr = shProg;
195 _mesa_reference_shader_program(struct gl_context *ctx, struct gl_shader_program **ptr, struct gl_shader_program *shProg) argument
265 struct gl_shader_program *shProg; local
279 _mesa_clear_shader_program_data(struct gl_context *ctx, struct gl_shader_program *shProg) argument
307 _mesa_free_shader_program_data(struct gl_context *ctx, struct gl_shader_program *shProg) argument
366 _mesa_delete_shader_program(struct gl_context *ctx, struct gl_shader_program *shProg) argument
380 struct gl_shader_program *shProg; local
409 struct gl_shader_program *shProg = (struct gl_shader_program *) local
[all...]
H A Dshared.c219 struct gl_shader_program *shProg = (struct gl_shader_program *) data; local
221 if (shProg->Type == GL_SHADER_PROGRAM_MESA) {
222 _mesa_free_shader_program_data(ctx, shProg);
240 struct gl_shader_program *shProg = (struct gl_shader_program *) data; local
241 ASSERT(shProg->Type == GL_SHADER_PROGRAM_MESA);
242 ctx->Driver.DeleteShaderProgram(ctx, shProg);
H A Dtransformfeedback.c576 struct gl_shader_program *shProg; local
599 shProg = _mesa_lookup_shader_program(ctx, program);
600 if (!shProg) {
639 for (i = 0; i < shProg->TransformFeedback.NumVarying; i++) {
640 free(shProg->TransformFeedback.VaryingNames[i]);
642 free(shProg->TransformFeedback.VaryingNames);
645 shProg->TransformFeedback.VaryingNames =
648 if (!shProg->TransformFeedback.VaryingNames) {
655 shProg->TransformFeedback.VaryingNames[i] = _mesa_strdup(varyings[i]);
657 shProg
676 const struct gl_shader_program *shProg; local
[all...]
H A Duniform_query.cpp46 struct gl_shader_program *shProg = local
51 if (!shProg)
54 if (index >= shProg->NumUserUniformStorage) {
59 const struct gl_uniform_storage *const uni = &shProg->UniformStorage[index];
85 struct gl_shader_program *shProg; local
88 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveUniform");
89 if (!shProg)
101 if (index >= shProg->NumUserUniformStorage) {
109 const struct gl_uniform_storage *uni = &shProg->UniformStorage[index];
156 struct gl_shader_program *shProg,
155 validate_uniform_parameters(struct gl_context *ctx, struct gl_shader_program *shProg, GLint location, GLsizei count, unsigned *loc, unsigned *array_index, const char *caller, bool negative_one_is_not_valid) argument
267 struct gl_shader_program *shProg = local
385 log_uniform(const void *values, enum glsl_base_type basicType, unsigned rows, unsigned cols, unsigned count, bool transpose, const struct gl_shader_program *shProg, GLint location, const struct gl_uniform_storage *uni) argument
576 _mesa_uniform(struct gl_context *ctx, struct gl_shader_program *shProg, GLint location, GLsizei count, const GLvoid *values, GLenum type) argument
828 _mesa_uniform_matrix(struct gl_context *ctx, struct gl_shader_program *shProg, GLuint cols, GLuint rows, GLint location, GLsizei count, GLboolean transpose, const GLfloat *values) argument
937 _mesa_get_uniform_location(struct gl_context *ctx, struct gl_shader_program *shProg, const GLchar *name, unsigned *out_offset) argument
1040 _mesa_sampler_uniforms_are_valid(const struct gl_shader_program *shProg, char *errMsg, size_t errMsgLength) argument
[all...]
H A Dcontext.c1867 struct gl_shader_program *shProg[MESA_SHADER_TYPES]; local
1870 shProg[MESA_SHADER_VERTEX] = ctx->Shader.CurrentVertexProgram;
1871 shProg[MESA_SHADER_GEOMETRY] = ctx->Shader.CurrentGeometryProgram;
1872 shProg[MESA_SHADER_FRAGMENT] = ctx->Shader.CurrentFragmentProgram;
1875 if (shProg[i] == NULL || shProg[i]->_Used
1876 || shProg[i]->_LinkedShaders[i] == NULL)
1888 _mesa_append_uniforms_to_file(shProg[i]->_LinkedShaders[i]);
1892 if (shProg[i] != NULL)
1893 shProg[
[all...]
H A Duniforms.c64 _mesa_update_shader_textures_used(struct gl_shader_program *shProg, argument
69 memcpy(prog->SamplerUnits, shProg->SamplerUnits, sizeof(prog->SamplerUnits));
74 GLuint unit = shProg->SamplerUnits[s];
75 GLuint tgt = shProg->SamplerTargets[s];
500 struct gl_shader_program *shProg; local
505 shProg = _mesa_lookup_shader_program_err(ctx, programObj,
507 if (!shProg)
515 if (shProg->LinkStatus == GL_FALSE) {
521 index = _mesa_get_uniform_location(ctx, shProg, name, &offset);
532 if (shProg
544 struct gl_shader_program *shProg; local
572 struct gl_shader_program *shProg; local
603 struct gl_shader_program *shProg; local
654 struct gl_shader_program *shProg; local
731 struct gl_shader_program *shProg; local
771 struct gl_shader_program *shProg; local
[all...]
H A Dshaderapi.c192 struct gl_shader_program *shProg = _mesa_lookup_shader_program(ctx, name); local
193 return shProg ? GL_TRUE : GL_FALSE;
211 struct gl_shader_program *shProg; local
215 shProg = _mesa_lookup_shader_program_err(ctx, program, "glAttachShader");
216 if (!shProg)
224 n = shProg->NumShaders;
226 if (shProg->Shaders[i] == sh) {
239 shProg->Shaders = (struct gl_shader **)
240 _mesa_realloc(shProg->Shaders,
243 if (!shProg
278 struct gl_shader_program *shProg; local
307 struct gl_shader_program *shProg; local
343 struct gl_shader_program *shProg; local
415 struct gl_shader_program *shProg = local
455 struct gl_shader_program *shProg local
648 struct gl_shader_program *shProg local
749 struct gl_shader_program *shProg; local
797 print_shader_info(const struct gl_shader_program *shProg) argument
837 _mesa_active_program(struct gl_context *ctx, struct gl_shader_program *shProg, const char *caller) argument
854 use_shader_program(struct gl_context *ctx, GLenum type, struct gl_shader_program *shProg) argument
931 _mesa_use_program(struct gl_context *ctx, struct gl_shader_program *shProg) argument
949 validate_shader_program(const struct gl_shader_program *shProg, char *errMsg) argument
989 struct gl_shader_program *shProg; local
1413 struct gl_shader_program *shProg; local
1538 struct gl_shader_program *shProg; local
1599 _mesa_use_shader_program(struct gl_context *ctx, GLenum type, struct gl_shader_program *shProg) argument
1616 struct gl_shader_program *shProg = NULL; local
1656 struct gl_shader_program *shProg = (program != 0) local
1681 struct gl_shader_program *shProg; local
[all...]
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_shader.cpp80 brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg) argument
86 for (stage = 0; stage < ARRAY_SIZE(shProg->_LinkedShaders); stage++) {
88 (struct brw_shader *)shProg->_LinkedShaders[stage];
104 _mesa_generate_parameters_list_for_uniforms(shProg, &shader->base,
109 vp->UsesClipDistance = shProg->Vert.UsesClipDistance;
203 _mesa_update_shader_textures_used(shProg, prog);
211 _mesa_associate_uniform_storage(ctx, shProg, prog->Parameters);
216 if (!brw_shader_precompile(ctx, shProg))

Completed in 164 milliseconds