Lines Matching refs:shProg
59 struct gl_shader_program *shProg; in _mesa_GetActiveUniform_impl() local
68 shProg = _mesa_lookup_shader_program_err_glthread(ctx, program, glthread, in _mesa_GetActiveUniform_impl()
70 if (!shProg) in _mesa_GetActiveUniform_impl()
73 res = _mesa_program_resource_find_index((struct gl_shader_program *) shProg, in _mesa_GetActiveUniform_impl()
83 _mesa_get_program_resource_name(shProg, GL_UNIFORM, index, maxLength, in _mesa_GetActiveUniform_impl()
87 _mesa_program_resource_prop((struct gl_shader_program *) shProg, in _mesa_GetActiveUniform_impl()
91 _mesa_program_resource_prop((struct gl_shader_program *) shProg, in _mesa_GetActiveUniform_impl()
140 struct gl_shader_program *shProg; in _mesa_GetActiveUniformsiv() local
150 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveUniform"); in _mesa_GetActiveUniformsiv()
151 if (!shProg) in _mesa_GetActiveUniformsiv()
166 if (!_mesa_program_resource_find_index(shProg, GL_UNIFORM, in _mesa_GetActiveUniformsiv()
174 res = _mesa_program_resource_find_index(shProg, GL_UNIFORM, in _mesa_GetActiveUniformsiv()
176 if (!_mesa_program_resource_prop(shProg, res, uniformIndices[i], in _mesa_GetActiveUniformsiv()
187 struct gl_shader_program *shProg, in validate_uniform_parameters() argument
190 if (shProg == NULL) { in validate_uniform_parameters()
209 if (unlikely(location >= (GLint) shProg->NumUniformRemapTable)) { in validate_uniform_parameters()
210 if (!shProg->data->LinkStatus) in validate_uniform_parameters()
221 if (!shProg->data->LinkStatus) in validate_uniform_parameters()
241 if (location < -1 || !shProg->UniformRemapTable[location]) { in validate_uniform_parameters()
258 if (shProg->UniformRemapTable[location] == in validate_uniform_parameters()
262 struct gl_uniform_storage *const uni = shProg->UniformRemapTable[location]; in validate_uniform_parameters()
307 struct gl_shader_program *shProg = in _mesa_get_uniform() local
313 ctx, shProg, "glGetUniform"); in _mesa_get_uniform()
734 const struct gl_shader_program *shProg, in log_uniform() argument
745 shProg->Name, extra, uni->name.string, location, uni->type->name, in log_uniform()
790 log_program_parameters(const struct gl_shader_program *shProg)
793 if (shProg->_LinkedShaders[i] == NULL)
796 const struct gl_program *const prog = shProg->_LinkedShaders[i]->Program;
799 shProg->Name, _mesa_shader_stage_to_string(i));
1143 struct gl_shader_program *shProg, in validate_uniform() argument
1148 ctx, shProg, "glUniform"); in validate_uniform()
1202 false, shProg, location, uni); in validate_uniform()
1434 struct gl_context *ctx, struct gl_shader_program *shProg, in _mesa_uniform() argument
1451 if (location >= (int)shProg->NumUniformRemapTable) in _mesa_uniform()
1454 uni = shProg->UniformRemapTable[location]; in _mesa_uniform()
1464 uni = validate_uniform(location, count, values, &offset, ctx, shProg, in _mesa_uniform()
1530 bool samplers_validated = shProg->SamplersValidated; in _mesa_uniform()
1532 shProg->SamplersValidated = GL_TRUE; in _mesa_uniform()
1535 struct gl_linked_shader *const sh = shProg->_LinkedShaders[i]; in _mesa_uniform()
1576 _mesa_update_shader_textures_used(shProg, prog); in _mesa_uniform()
1584 shProg->SamplersValidated = samplers_validated; in _mesa_uniform()
1592 struct gl_linked_shader *sh = shProg->_LinkedShaders[i]; in _mesa_uniform()
1843 struct gl_context *ctx, struct gl_shader_program *shProg, in _mesa_uniform_matrix() argument
1849 ctx, shProg, "glUniformMatrix"); in _mesa_uniform_matrix()
1915 bool(transpose), shProg, location, uni); in _mesa_uniform_matrix()
2006 struct gl_context *ctx, struct gl_shader_program *shProg) in _mesa_uniform_handle() argument
2021 uni = shProg->UniformRemapTable[location]; in _mesa_uniform_handle()
2032 ctx, shProg, "glUniformHandleui64*ARB"); in _mesa_uniform_handle()
2060 false, shProg, location, uni); in _mesa_uniform_handle()
2117 struct gl_linked_shader *const sh = shProg->_LinkedShaders[i]; in _mesa_uniform_handle()
2140 struct gl_linked_shader *sh = shProg->_LinkedShaders[i]; in _mesa_uniform_handle()
2160 _mesa_sampler_uniforms_are_valid(const struct gl_shader_program *shProg, in _mesa_sampler_uniforms_are_valid() argument
2164 if (shProg->data->NumUniformStorage == 0) in _mesa_sampler_uniforms_are_valid()
2167 if (!shProg->SamplersValidated) { in _mesa_sampler_uniforms_are_valid()