/external/mesa3d/src/mesa/main/ |
shaderobj.c | 224 * Set ptr to point to shProg. 227 * Then set ptr to point to shProg, incrementing its refcount. 232 struct gl_shader_program *shProg) 235 if (*ptr == shProg) { 255 if (shProg) { 256 p_atomic_inc(&shProg->RefCount); 257 *ptr = shProg; 300 struct gl_shader_program *shProg; 301 shProg = rzalloc(NULL, struct gl_shader_program); 302 if (shProg) { [all...] |
program_resource.c | 100 struct gl_shader_program *shProg = 103 if (!shProg) 122 for (i = 0, *params = 0; i < shProg->NumProgramResourceList; i++) 123 if (shProg->ProgramResourceList[i].Type == programInterface) 138 for (i = 0, *params = 0; i < shProg->NumProgramResourceList; i++) { 139 if (shProg->ProgramResourceList[i].Type != programInterface) 142 _mesa_program_resource_name_len(&shProg->ProgramResourceList[i]); 149 for (i = 0, *params = 0; i < shProg->NumProgramResourceList; i++) { 150 if (shProg->ProgramResourceList[i].Type == programInterface) { 153 shProg->ProgramResourceList[i].Data [all...] |
shaderapi.c | 236 struct gl_shader_program *shProg = _mesa_lookup_shader_program(ctx, name); 237 return shProg ? GL_TRUE : GL_FALSE; 255 struct gl_shader_program *shProg; 261 shProg = _mesa_lookup_shader_program_err(ctx, program, "glAttachShader"); 262 if (!shProg) 270 n = shProg->NumShaders; 272 if (shProg->Shaders[i] == sh) { 282 shProg->Shaders[i]->Stage == sh->Stage) { 297 shProg->Shaders = realloc(shProg->Shaders [all...] |
uniforms.c | 67 _mesa_update_shader_textures_used(struct gl_shader_program *shProg, 72 shProg->_LinkedShaders[_mesa_program_enum_to_shader_stage(prog->Target)]; 78 shProg->SamplersValidated = GL_TRUE; 96 shProg->SamplersValidated = GL_FALSE; 291 struct gl_shader_program *shProg = 294 _mesa_uniform(ctx, shProg, location, 1, &v0, GLSL_TYPE_FLOAT, 1); 302 struct gl_shader_program *shProg; 305 shProg = _mesa_lookup_shader_program_err(ctx, program, "glProgramUniform2f"); 306 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_FLOAT, 2); 315 struct gl_shader_program *shProg; [all...] |
shader_query.cpp | 72 struct gl_shader_program *const shProg = 74 if (!shProg) 96 shProg->AttributeBindings->put(index + VERT_ATTRIB_GENERIC0, name); 110 struct gl_shader_program *shProg; 117 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveAttrib"); 118 if (!shProg) 121 if (!shProg->data->LinkStatus) { 127 if (shProg->_LinkedShaders[MESA_SHADER_VERTEX] == NULL) { 133 _mesa_program_resource_find_index(shProg, GL_PROGRAM_INPUT, 149 _mesa_program_resource_prop(shProg, res, desired_index, GL_ARRAY_SIZE [all...] |
shaderobj.h | 67 struct gl_shader_program *shProg); 77 struct gl_shader_program *shProg) 79 if (*ptr != shProg) 80 _mesa_reference_shader_program_(ctx, ptr, shProg); 105 struct gl_shader_program *shProg); 109 struct gl_shader_program *shProg); 113 struct gl_shader_program *shProg);
|
uniform_query.cpp | 47 struct gl_shader_program *shProg; 55 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveUniform"); 56 if (!shProg) 59 res = _mesa_program_resource_find_index((struct gl_shader_program *) shProg, 68 _mesa_get_program_resource_name(shProg, GL_UNIFORM, index, maxLength, 71 _mesa_program_resource_prop((struct gl_shader_program *) shProg, 75 _mesa_program_resource_prop((struct gl_shader_program *) shProg, 115 struct gl_shader_program *shProg; 125 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveUniform"); 126 if (!shProg) [all...] |
shaderapi.h | 54 _mesa_use_program(struct gl_context *ctx, struct gl_shader_program *shProg); 57 _mesa_active_program(struct gl_context *ctx, struct gl_shader_program *shProg, 67 _mesa_count_active_attribs(struct gl_shader_program *shProg); 70 _mesa_longest_attribute_name_length(struct gl_shader_program *shProg); 217 struct gl_shader_program *shProg, 241 _mesa_program_resource_index(struct gl_shader_program *shProg, 245 _mesa_program_resource_find_name(struct gl_shader_program *shProg, 250 _mesa_program_resource_find_index(struct gl_shader_program *shProg, 254 _mesa_get_program_resource_name(struct gl_shader_program *shProg, 263 _mesa_program_resource_location(struct gl_shader_program *shProg, [all...] |
pipelineobj.c | 230 struct gl_shader_program *shProg = NULL; 286 shProg = _mesa_lookup_shader_program_err(ctx, program, 288 if (shProg == NULL) 300 if (!shProg->data->LinkStatus) { 306 if (!shProg->SeparateShader) { 328 _mesa_use_shader_program(ctx, GL_VERTEX_SHADER, shProg, pipe); 331 _mesa_use_shader_program(ctx, GL_FRAGMENT_SHADER, shProg, pipe); 334 _mesa_use_shader_program(ctx, GL_GEOMETRY_SHADER, shProg, pipe); 337 _mesa_use_shader_program(ctx, GL_TESS_CONTROL_SHADER, shProg, pipe); 340 _mesa_use_shader_program(ctx, GL_TESS_EVALUATION_SHADER, shProg, pipe) [all...] |
transformfeedback.c | 66 struct gl_shader_program *shProg) 70 callback_data.prog = shProg->xfb_program; 815 struct gl_shader_program *shProg; 848 shProg = _mesa_lookup_shader_program_err(ctx, program, 850 if (!shProg) 886 for (i = 0; i < (GLint) shProg->TransformFeedback.NumVarying; i++) { 887 free(shProg->TransformFeedback.VaryingNames[i]); 889 free(shProg->TransformFeedback.VaryingNames); 892 shProg->TransformFeedback.VaryingNames = 895 if (!shProg->TransformFeedback.VaryingNames) [all...] |
shared.c | 220 struct gl_shader_program *shProg = (struct gl_shader_program *) data; 222 if (shProg->Type == GL_SHADER_PROGRAM_MESA) { 223 _mesa_free_shader_program_data(ctx, shProg); 241 struct gl_shader_program *shProg = (struct gl_shader_program *) data; 242 assert(shProg->Type == GL_SHADER_PROGRAM_MESA); 243 _mesa_delete_shader_program(ctx, shProg);
|
api_validate.c | 194 struct gl_shader_program **shProg = ctx->_Shader->CurrentProgram; 198 if (shProg[i] == NULL || shProg[i]->_LinkedShaders[i] == NULL || 199 shProg[i]->_LinkedShaders[i]->Program->_Used) 211 _mesa_append_uniforms_to_file(shProg[i]->_LinkedShaders[i]->Program); 215 if (shProg[i] != NULL && shProg[i]->_LinkedShaders[i] != NULL) 216 shProg[i]->_LinkedShaders[i]->Program->_Used = GL_TRUE; [all...] |
transformfeedback.h | 135 struct gl_shader_program *shProg);
|
uniforms.h | 358 _mesa_uniform_matrix(struct gl_context *ctx, struct gl_shader_program *shProg, 385 _mesa_update_shader_textures_used(struct gl_shader_program *shProg, 389 _mesa_sampler_uniforms_are_valid(const struct gl_shader_program *shProg, 395 get_uniform_parameter(struct gl_shader_program *shProg, GLint index);
|
/external/mesa3d/src/compiler/glsl/ |
standalone_scaffolding.cpp | 131 struct gl_shader_program *shProg) 134 if (shProg->_LinkedShaders[i] != NULL) { 135 _mesa_delete_linked_shader(ctx, shProg->_LinkedShaders[i]); 136 shProg->_LinkedShaders[i] = NULL; 140 shProg->data->NumUniformStorage = 0; 141 shProg->data->UniformStorage = NULL; 142 shProg->NumUniformRemapTable = 0; 143 shProg->UniformRemapTable = NULL; 144 shProg->UniformHash = NULL; 146 ralloc_free(shProg->data->InfoLog) [all...] |
program.h | 47 struct gl_shader_program *shProg);
|
linker.cpp | [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_link.cpp | 200 brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg) 207 for (stage = 0; stage < ARRAY_SIZE(shProg->_LinkedShaders); stage++) { 208 struct gl_linked_shader *shader = shProg->_LinkedShaders[stage]; 215 process_glsl_ir(brw, shProg, shader); 217 _mesa_copy_linked_program_data(shProg, shader); 220 _mesa_update_shader_textures_used(shProg, prog); 229 _mesa_shader_stage_to_string(shader->Stage), shProg->Name); 234 prog->nir = brw_create_nir(brw, shProg, prog, (gl_shader_stage) stage, 263 if (!shProg->SeparateShader) 266 if ((ctx->_Shader->Flags & GLSL_DUMP) && shProg->Name != 0) [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_program.c | [all...] |