Lines Matching refs:shProg
48 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
141 if (!shProg) { in _mesa_GetAttribLocationARB()
145 if (!shProg->LinkStatus) { in _mesa_GetAttribLocationARB()
156 if (shProg->_LinkedShaders[MESA_SHADER_VERTEX] == NULL) in _mesa_GetAttribLocationARB()
159 exec_list *ir = shProg->_LinkedShaders[MESA_SHADER_VERTEX]->ir; in _mesa_GetAttribLocationARB()
186 _mesa_count_active_attribs(struct gl_shader_program *shProg) in _mesa_count_active_attribs() argument
188 if (!shProg->LinkStatus in _mesa_count_active_attribs()
189 || shProg->_LinkedShaders[MESA_SHADER_VERTEX] == NULL) { in _mesa_count_active_attribs()
193 exec_list *const ir = shProg->_LinkedShaders[MESA_SHADER_VERTEX]->ir; in _mesa_count_active_attribs()
212 _mesa_longest_attribute_name_length(struct gl_shader_program *shProg) in _mesa_longest_attribute_name_length() argument
214 if (!shProg->LinkStatus in _mesa_longest_attribute_name_length()
215 || shProg->_LinkedShaders[MESA_SHADER_VERTEX] == NULL) { in _mesa_longest_attribute_name_length()
219 exec_list *const ir = shProg->_LinkedShaders[MESA_SHADER_VERTEX]->ir; in _mesa_longest_attribute_name_length()
251 struct gl_shader_program *const shProg = in _mesa_BindFragDataLocationIndexed() local
253 if (!shProg) in _mesa_BindFragDataLocationIndexed()
283 shProg->FragDataBindings->put(colorNumber + FRAG_RESULT_DATA0, name); in _mesa_BindFragDataLocationIndexed()
284 shProg->FragDataIndexBindings->put(index, name); in _mesa_BindFragDataLocationIndexed()
296 struct gl_shader_program *const shProg = in _mesa_GetFragDataIndex() local
299 if (!shProg) { in _mesa_GetFragDataIndex()
303 if (!shProg->LinkStatus) { in _mesa_GetFragDataIndex()
320 if (shProg->_LinkedShaders[MESA_SHADER_FRAGMENT] == NULL) in _mesa_GetFragDataIndex()
323 exec_list *ir = shProg->_LinkedShaders[MESA_SHADER_FRAGMENT]->ir; in _mesa_GetFragDataIndex()
352 struct gl_shader_program *const shProg = in _mesa_GetFragDataLocation() local
355 if (!shProg) { in _mesa_GetFragDataLocation()
359 if (!shProg->LinkStatus) { in _mesa_GetFragDataLocation()
376 if (shProg->_LinkedShaders[MESA_SHADER_FRAGMENT] == NULL) in _mesa_GetFragDataLocation()
379 exec_list *ir = shProg->_LinkedShaders[MESA_SHADER_FRAGMENT]->ir; in _mesa_GetFragDataLocation()