Home
last modified time | relevance | path

Searched refs:shProg (Results 1 – 25 of 34) sorted by relevance

12

/external/mesa3d/src/mesa/main/
Dshaderobj.c197 struct gl_shader_program *shProg) in _mesa_reference_shader_program() argument
200 if (*ptr == shProg) { in _mesa_reference_shader_program()
227 if (shProg) { in _mesa_reference_shader_program()
228 shProg->RefCount++; in _mesa_reference_shader_program()
231 (void *) shProg, shProg->Name, shProg->RefCount); in _mesa_reference_shader_program()
233 *ptr = shProg; in _mesa_reference_shader_program()
265 struct gl_shader_program *shProg; in _mesa_new_shader_program() local
266 shProg = rzalloc(NULL, struct gl_shader_program); in _mesa_new_shader_program()
267 if (shProg) { in _mesa_new_shader_program()
268 shProg->Name = name; in _mesa_new_shader_program()
[all …]
Dshaderapi.c192 struct gl_shader_program *shProg = _mesa_lookup_shader_program(ctx, name); in is_program() local
193 return shProg ? GL_TRUE : GL_FALSE; in is_program()
211 struct gl_shader_program *shProg; in attach_shader() local
215 shProg = _mesa_lookup_shader_program_err(ctx, program, "glAttachShader"); in attach_shader()
216 if (!shProg) in attach_shader()
224 n = shProg->NumShaders; in attach_shader()
226 if (shProg->Shaders[i] == sh) { in attach_shader()
239 shProg->Shaders = (struct gl_shader **) in attach_shader()
240 _mesa_realloc(shProg->Shaders, in attach_shader()
243 if (!shProg->Shaders) { in attach_shader()
[all …]
Dshader_query.cpp48 struct gl_shader_program *const shProg = in _mesa_BindAttribLocationARB() local
50 if (!shProg) in _mesa_BindAttribLocationARB()
71 shProg->AttributeBindings->put(index + VERT_ATTRIB_GENERIC0, name); in _mesa_BindAttribLocationARB()
85 struct gl_shader_program *shProg; in _mesa_GetActiveAttribARB() local
87 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveAttrib"); in _mesa_GetActiveAttribARB()
88 if (!shProg) in _mesa_GetActiveAttribARB()
91 if (!shProg->LinkStatus) { in _mesa_GetActiveAttribARB()
97 if (shProg->_LinkedShaders[MESA_SHADER_VERTEX] == NULL) { in _mesa_GetActiveAttribARB()
102 exec_list *const ir = shProg->_LinkedShaders[MESA_SHADER_VERTEX]->ir; in _mesa_GetActiveAttribARB()
138 struct gl_shader_program *const shProg = in _mesa_GetAttribLocationARB() local
[all …]
Duniform_query.cpp46 struct gl_shader_program *shProg = in _mesa_GetActiveUniformARB() local
51 if (!shProg) in _mesa_GetActiveUniformARB()
54 if (index >= shProg->NumUserUniformStorage) { in _mesa_GetActiveUniformARB()
59 const struct gl_uniform_storage *const uni = &shProg->UniformStorage[index]; in _mesa_GetActiveUniformARB()
85 struct gl_shader_program *shProg; in _mesa_GetActiveUniformsiv() local
88 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveUniform"); in _mesa_GetActiveUniformsiv()
89 if (!shProg) in _mesa_GetActiveUniformsiv()
101 if (index >= shProg->NumUserUniformStorage) { in _mesa_GetActiveUniformsiv()
109 const struct gl_uniform_storage *uni = &shProg->UniformStorage[index]; in _mesa_GetActiveUniformsiv()
156 struct gl_shader_program *shProg, in validate_uniform_parameters() argument
[all …]
Duniforms.c64 _mesa_update_shader_textures_used(struct gl_shader_program *shProg, in _mesa_update_shader_textures_used() argument
69 memcpy(prog->SamplerUnits, shProg->SamplerUnits, sizeof(prog->SamplerUnits)); in _mesa_update_shader_textures_used()
74 GLuint unit = shProg->SamplerUnits[s]; in _mesa_update_shader_textures_used()
75 GLuint tgt = shProg->SamplerTargets[s]; in _mesa_update_shader_textures_used()
500 struct gl_shader_program *shProg; in _mesa_GetUniformLocationARB() local
505 shProg = _mesa_lookup_shader_program_err(ctx, programObj, in _mesa_GetUniformLocationARB()
507 if (!shProg) in _mesa_GetUniformLocationARB()
515 if (shProg->LinkStatus == GL_FALSE) { in _mesa_GetUniformLocationARB()
521 index = _mesa_get_uniform_location(ctx, shProg, name, &offset); in _mesa_GetUniformLocationARB()
532 if (shProg->UniformStorage[index].block_index != -1) in _mesa_GetUniformLocationARB()
[all …]
Dtransformfeedback.c576 struct gl_shader_program *shProg; in _mesa_TransformFeedbackVaryings() local
599 shProg = _mesa_lookup_shader_program(ctx, program); in _mesa_TransformFeedbackVaryings()
600 if (!shProg) { in _mesa_TransformFeedbackVaryings()
639 for (i = 0; i < shProg->TransformFeedback.NumVarying; i++) { in _mesa_TransformFeedbackVaryings()
640 free(shProg->TransformFeedback.VaryingNames[i]); in _mesa_TransformFeedbackVaryings()
642 free(shProg->TransformFeedback.VaryingNames); in _mesa_TransformFeedbackVaryings()
645 shProg->TransformFeedback.VaryingNames = in _mesa_TransformFeedbackVaryings()
648 if (!shProg->TransformFeedback.VaryingNames) { in _mesa_TransformFeedbackVaryings()
655 shProg->TransformFeedback.VaryingNames[i] = _mesa_strdup(varyings[i]); in _mesa_TransformFeedbackVaryings()
657 shProg->TransformFeedback.NumVarying = count; in _mesa_TransformFeedbackVaryings()
[all …]
Dshaderapi.h47 _mesa_use_program(struct gl_context *ctx, struct gl_shader_program *shProg);
50 _mesa_active_program(struct gl_context *ctx, struct gl_shader_program *shProg,
58 _mesa_count_active_attribs(struct gl_shader_program *shProg);
61 _mesa_longest_attribute_name_length(struct gl_shader_program *shProg);
197 struct gl_shader_program *shProg);
Dshaderobj.h67 struct gl_shader_program *shProg);
86 struct gl_shader_program *shProg);
90 struct gl_shader_program *shProg);
Duniforms.h187 _mesa_get_uniform_location(struct gl_context *ctx, struct gl_shader_program *shProg,
196 _mesa_uniform_matrix(struct gl_context *ctx, struct gl_shader_program *shProg,
222 _mesa_update_shader_textures_used(struct gl_shader_program *shProg,
226 _mesa_sampler_uniforms_are_valid(const struct gl_shader_program *shProg,
234 get_uniform_parameter(struct gl_shader_program *shProg, GLint index);
Dshared.c219 struct gl_shader_program *shProg = (struct gl_shader_program *) data; in free_shader_program_data_cb() local
221 if (shProg->Type == GL_SHADER_PROGRAM_MESA) { in free_shader_program_data_cb()
222 _mesa_free_shader_program_data(ctx, shProg); in free_shader_program_data_cb()
240 struct gl_shader_program *shProg = (struct gl_shader_program *) data; in delete_shader_cb() local
241 ASSERT(shProg->Type == GL_SHADER_PROGRAM_MESA); in delete_shader_cb()
242 ctx->Driver.DeleteShaderProgram(ctx, shProg); in delete_shader_cb()
/external/chromium_org/third_party/mesa/src/src/mesa/main/
Dshaderobj.c197 struct gl_shader_program *shProg) in _mesa_reference_shader_program() argument
200 if (*ptr == shProg) { in _mesa_reference_shader_program()
227 if (shProg) { in _mesa_reference_shader_program()
228 shProg->RefCount++; in _mesa_reference_shader_program()
231 (void *) shProg, shProg->Name, shProg->RefCount); in _mesa_reference_shader_program()
233 *ptr = shProg; in _mesa_reference_shader_program()
265 struct gl_shader_program *shProg; in _mesa_new_shader_program() local
266 shProg = rzalloc(NULL, struct gl_shader_program); in _mesa_new_shader_program()
267 if (shProg) { in _mesa_new_shader_program()
268 shProg->Name = name; in _mesa_new_shader_program()
[all …]
Dshaderapi.c192 struct gl_shader_program *shProg = _mesa_lookup_shader_program(ctx, name); in is_program() local
193 return shProg ? GL_TRUE : GL_FALSE; in is_program()
211 struct gl_shader_program *shProg; in attach_shader() local
215 shProg = _mesa_lookup_shader_program_err(ctx, program, "glAttachShader"); in attach_shader()
216 if (!shProg) in attach_shader()
224 n = shProg->NumShaders; in attach_shader()
226 if (shProg->Shaders[i] == sh) { in attach_shader()
239 shProg->Shaders = (struct gl_shader **) in attach_shader()
240 _mesa_realloc(shProg->Shaders, in attach_shader()
243 if (!shProg->Shaders) { in attach_shader()
[all …]
Dshader_query.cpp48 struct gl_shader_program *const shProg = in _mesa_BindAttribLocationARB() local
50 if (!shProg) in _mesa_BindAttribLocationARB()
71 shProg->AttributeBindings->put(index + VERT_ATTRIB_GENERIC0, name); in _mesa_BindAttribLocationARB()
85 struct gl_shader_program *shProg; in _mesa_GetActiveAttribARB() local
87 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveAttrib"); in _mesa_GetActiveAttribARB()
88 if (!shProg) in _mesa_GetActiveAttribARB()
91 if (!shProg->LinkStatus) { in _mesa_GetActiveAttribARB()
97 if (shProg->_LinkedShaders[MESA_SHADER_VERTEX] == NULL) { in _mesa_GetActiveAttribARB()
102 exec_list *const ir = shProg->_LinkedShaders[MESA_SHADER_VERTEX]->ir; in _mesa_GetActiveAttribARB()
138 struct gl_shader_program *const shProg = in _mesa_GetAttribLocationARB() local
[all …]
Duniform_query.cpp46 struct gl_shader_program *shProg = in _mesa_GetActiveUniformARB() local
51 if (!shProg) in _mesa_GetActiveUniformARB()
54 if (index >= shProg->NumUserUniformStorage) { in _mesa_GetActiveUniformARB()
59 const struct gl_uniform_storage *const uni = &shProg->UniformStorage[index]; in _mesa_GetActiveUniformARB()
85 struct gl_shader_program *shProg; in _mesa_GetActiveUniformsiv() local
88 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveUniform"); in _mesa_GetActiveUniformsiv()
89 if (!shProg) in _mesa_GetActiveUniformsiv()
101 if (index >= shProg->NumUserUniformStorage) { in _mesa_GetActiveUniformsiv()
109 const struct gl_uniform_storage *uni = &shProg->UniformStorage[index]; in _mesa_GetActiveUniformsiv()
156 struct gl_shader_program *shProg, in validate_uniform_parameters() argument
[all …]
Duniforms.c64 _mesa_update_shader_textures_used(struct gl_shader_program *shProg, in _mesa_update_shader_textures_used() argument
69 memcpy(prog->SamplerUnits, shProg->SamplerUnits, sizeof(prog->SamplerUnits)); in _mesa_update_shader_textures_used()
74 GLuint unit = shProg->SamplerUnits[s]; in _mesa_update_shader_textures_used()
75 GLuint tgt = shProg->SamplerTargets[s]; in _mesa_update_shader_textures_used()
500 struct gl_shader_program *shProg; in _mesa_GetUniformLocationARB() local
505 shProg = _mesa_lookup_shader_program_err(ctx, programObj, in _mesa_GetUniformLocationARB()
507 if (!shProg) in _mesa_GetUniformLocationARB()
515 if (shProg->LinkStatus == GL_FALSE) { in _mesa_GetUniformLocationARB()
521 index = _mesa_get_uniform_location(ctx, shProg, name, &offset); in _mesa_GetUniformLocationARB()
532 if (shProg->UniformStorage[index].block_index != -1) in _mesa_GetUniformLocationARB()
[all …]
Dtransformfeedback.c576 struct gl_shader_program *shProg; in _mesa_TransformFeedbackVaryings() local
599 shProg = _mesa_lookup_shader_program(ctx, program); in _mesa_TransformFeedbackVaryings()
600 if (!shProg) { in _mesa_TransformFeedbackVaryings()
639 for (i = 0; i < shProg->TransformFeedback.NumVarying; i++) { in _mesa_TransformFeedbackVaryings()
640 free(shProg->TransformFeedback.VaryingNames[i]); in _mesa_TransformFeedbackVaryings()
642 free(shProg->TransformFeedback.VaryingNames); in _mesa_TransformFeedbackVaryings()
645 shProg->TransformFeedback.VaryingNames = in _mesa_TransformFeedbackVaryings()
648 if (!shProg->TransformFeedback.VaryingNames) { in _mesa_TransformFeedbackVaryings()
655 shProg->TransformFeedback.VaryingNames[i] = _mesa_strdup(varyings[i]); in _mesa_TransformFeedbackVaryings()
657 shProg->TransformFeedback.NumVarying = count; in _mesa_TransformFeedbackVaryings()
[all …]
Dshaderapi.h47 _mesa_use_program(struct gl_context *ctx, struct gl_shader_program *shProg);
50 _mesa_active_program(struct gl_context *ctx, struct gl_shader_program *shProg,
58 _mesa_count_active_attribs(struct gl_shader_program *shProg);
61 _mesa_longest_attribute_name_length(struct gl_shader_program *shProg);
197 struct gl_shader_program *shProg);
Dshaderobj.h67 struct gl_shader_program *shProg);
86 struct gl_shader_program *shProg);
90 struct gl_shader_program *shProg);
Duniforms.h187 _mesa_get_uniform_location(struct gl_context *ctx, struct gl_shader_program *shProg,
196 _mesa_uniform_matrix(struct gl_context *ctx, struct gl_shader_program *shProg,
222 _mesa_update_shader_textures_used(struct gl_shader_program *shProg,
226 _mesa_sampler_uniforms_are_valid(const struct gl_shader_program *shProg,
234 get_uniform_parameter(struct gl_shader_program *shProg, GLint index);
Dshared.c219 struct gl_shader_program *shProg = (struct gl_shader_program *) data; in free_shader_program_data_cb() local
221 if (shProg->Type == GL_SHADER_PROGRAM_MESA) { in free_shader_program_data_cb()
222 _mesa_free_shader_program_data(ctx, shProg); in free_shader_program_data_cb()
240 struct gl_shader_program *shProg = (struct gl_shader_program *) data; in delete_shader_cb() local
241 ASSERT(shProg->Type == GL_SHADER_PROGRAM_MESA); in delete_shader_cb()
242 ctx->Driver.DeleteShaderProgram(ctx, shProg); in delete_shader_cb()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_shader.cpp80 brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg) in brw_link_shader() argument
86 for (stage = 0; stage < ARRAY_SIZE(shProg->_LinkedShaders); stage++) { in brw_link_shader()
88 (struct brw_shader *)shProg->_LinkedShaders[stage]; in brw_link_shader()
104 _mesa_generate_parameters_list_for_uniforms(shProg, &shader->base, in brw_link_shader()
109 vp->UsesClipDistance = shProg->Vert.UsesClipDistance; in brw_link_shader()
203 _mesa_update_shader_textures_used(shProg, prog); in brw_link_shader()
211 _mesa_associate_uniform_storage(ctx, shProg, prog->Parameters); in brw_link_shader()
216 if (!brw_shader_precompile(ctx, shProg)) in brw_link_shader()
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
Dbrw_shader.cpp80 brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg) in brw_link_shader() argument
86 for (stage = 0; stage < ARRAY_SIZE(shProg->_LinkedShaders); stage++) { in brw_link_shader()
88 (struct brw_shader *)shProg->_LinkedShaders[stage]; in brw_link_shader()
104 _mesa_generate_parameters_list_for_uniforms(shProg, &shader->base, in brw_link_shader()
109 vp->UsesClipDistance = shProg->Vert.UsesClipDistance; in brw_link_shader()
203 _mesa_update_shader_textures_used(shProg, prog); in brw_link_shader()
211 _mesa_associate_uniform_storage(ctx, shProg, prog->Parameters); in brw_link_shader()
216 if (!brw_shader_precompile(ctx, shProg)) in brw_link_shader()
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/
Dst_draw.c133 struct gl_shader_program *shProg[3] = { in check_uniforms() local
143 if (shProg[j] == NULL || !shProg[j]->LinkStatus) in check_uniforms()
146 for (i = 0; i < shProg[j]->NumUserUniformStorage; i++) { in check_uniforms()
147 const struct gl_uniform_storage *u = &shProg[j]->UniformStorage[i]; in check_uniforms()
/external/mesa3d/src/mesa/state_tracker/
Dst_draw.c133 struct gl_shader_program *shProg[3] = { in check_uniforms() local
143 if (shProg[j] == NULL || !shProg[j]->LinkStatus) in check_uniforms()
146 for (i = 0; i < shProg[j]->NumUserUniformStorage; i++) { in check_uniforms()
147 const struct gl_uniform_storage *u = &shProg[j]->UniformStorage[i]; in check_uniforms()
Dst_program.c1103 struct gl_shader_program *shProg[3] = { in st_print_shaders() local
1113 if (shProg[j] == NULL) in st_print_shaders()
1116 for (i = 0; i < shProg[j]->NumShaders; i++) { in st_print_shaders()
1119 switch (shProg[j]->Shaders[i]->Type) { in st_print_shaders()
1121 sh = (i != 0) ? NULL : shProg[j]->Shaders[i]; in st_print_shaders()
1124 sh = (i != 1) ? NULL : shProg[j]->Shaders[i]; in st_print_shaders()
1127 sh = (i != 2) ? NULL : shProg[j]->Shaders[i]; in st_print_shaders()
1136 printf("GLSL shader %u of %u:\n", i, shProg[j]->NumShaders); in st_print_shaders()
1237 struct gl_shader_program *shProg = (struct gl_shader_program *) data; in destroy_shader_program_variants_cb() local
1240 for (i = 0; i < shProg->NumShaders; i++) { in destroy_shader_program_variants_cb()
[all …]

12