Home | History | Annotate | Download | only in main

Lines Matching full:ctx

133    GET_CURRENT_CONTEXT(ctx);
134 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, &v0, GL_FLOAT);
140 GET_CURRENT_CONTEXT(ctx);
144 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, v, GL_FLOAT_VEC2);
150 GET_CURRENT_CONTEXT(ctx);
155 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, v, GL_FLOAT_VEC3);
162 GET_CURRENT_CONTEXT(ctx);
168 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, v, GL_FLOAT_VEC4);
174 GET_CURRENT_CONTEXT(ctx);
175 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, &v0, GL_INT);
181 GET_CURRENT_CONTEXT(ctx);
185 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, v, GL_INT_VEC2);
191 GET_CURRENT_CONTEXT(ctx);
196 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, v, GL_INT_VEC3);
202 GET_CURRENT_CONTEXT(ctx);
208 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, v, GL_INT_VEC4);
214 GET_CURRENT_CONTEXT(ctx);
215 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_FLOAT);
221 GET_CURRENT_CONTEXT(ctx);
222 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_FLOAT_VEC2);
228 GET_CURRENT_CONTEXT(ctx);
229 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_FLOAT_VEC3);
235 GET_CURRENT_CONTEXT(ctx);
236 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_FLOAT_VEC4);
242 GET_CURRENT_CONTEXT(ctx);
243 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_INT);
249 GET_CURRENT_CONTEXT(ctx);
250 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_INT_VEC2);
256 GET_CURRENT_CONTEXT(ctx);
257 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_INT_VEC3);
263 GET_CURRENT_CONTEXT(ctx);
264 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_INT_VEC4);
272 GET_CURRENT_CONTEXT(ctx);
273 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, &v0, GL_UNSIGNED_INT);
279 GET_CURRENT_CONTEXT(ctx);
283 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, v, GL_UNSIGNED_INT_VEC2);
289 GET_CURRENT_CONTEXT(ctx);
294 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, v, GL_UNSIGNED_INT_VEC3);
300 GET_CURRENT_CONTEXT(ctx);
306 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, 1, v, GL_UNSIGNED_INT_VEC4);
312 GET_CURRENT_CONTEXT(ctx);
313 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_UNSIGNED_INT);
319 GET_CURRENT_CONTEXT(ctx);
320 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_UNSIGNED_INT_VEC2);
326 GET_CURRENT_CONTEXT(ctx);
327 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_UNSIGNED_INT_VEC3);
333 GET_CURRENT_CONTEXT(ctx);
334 _mesa_uniform(ctx, ctx->Shader.ActiveProgram, location, count, value, GL_UNSIGNED_INT_VEC4);
343 GET_CURRENT_CONTEXT(ctx);
344 _mesa_uniform_matrix(ctx, ctx->Shader.ActiveProgram,
352 GET_CURRENT_CONTEXT(ctx);
353 _mesa_uniform_matrix(ctx, ctx->Shader.ActiveProgram,
361 GET_CURRENT_CONTEXT(ctx);
362 _mesa_uniform_matrix(ctx, ctx->Shader.ActiveProgram,
374 GET_CURRENT_CONTEXT(ctx);
375 _mesa_uniform_matrix(ctx, ctx->Shader.ActiveProgram,
383 GET_CURRENT_CONTEXT(ctx);
384 _mesa_uniform_matrix(ctx, ctx->Shader.ActiveProgram,
392 GET_CURRENT_CONTEXT(ctx);
393 _mesa_uniform_matrix(ctx, ctx->Shader.ActiveProgram,
401 GET_CURRENT_CONTEXT(ctx);
402 _mesa_uniform_matrix(ctx, ctx->Shader.ActiveProgram,
410 GET_CURRENT_CONTEXT(ctx);
411 _mesa_uniform_matrix(ctx, ctx->Shader.ActiveProgram,
419 GET_CURRENT_CONTEXT(ctx);
420 _mesa_uniform_matrix(ctx, ctx->Shader.ActiveProgram,
429 GET_CURRENT_CONTEXT(ctx);
430 _mesa_get_uniform(ctx, program, location, bufSize, GLSL_TYPE_FLOAT, params);
444 GET_CURRENT_CONTEXT(ctx);
445 _mesa_get_uniform(ctx, program, location, bufSize, GLSL_TYPE_INT, params);
460 GET_CURRENT_CONTEXT(ctx);
461 _mesa_get_uniform(ctx, program, location, bufSize, GLSL_TYPE_UINT, params);
476 GET_CURRENT_CONTEXT(ctx);
484 _mesa_get_uniform(ctx, program, location, bufSize, GLSL_TYPE_DOUBLE, params);
486 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetUniformdvARB"
503 GET_CURRENT_CONTEXT(ctx);
505 shProg = _mesa_lookup_shader_program_err(ctx, programObj,
516 _mesa_error(ctx, GL_INVALID_OPERATION,
521 index = _mesa_get_uniform_location(ctx, shProg, name, &offset);
542 GET_CURRENT_CONTEXT(ctx);
546 if (!ctx->Extensions.ARB_uniform_buffer_object) {
547 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetUniformBlockIndex");
551 shProg = _mesa_lookup_shader_program_err(ctx, program,
570 GET_CURRENT_CONTEXT(ctx);
574 if (!ctx->Extensions.ARB_uniform_buffer_object) {
575 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetUniformIndices");
579 shProg = _mesa_lookup_shader_program_err(ctx, program,
585 _mesa_error(ctx, GL_INVALID_VALUE,
592 uniformIndices[i] = _mesa_get_uniform_location(ctx, shProg,
602 GET_CURRENT_CONTEXT(ctx);
605 if (!ctx->Extensions.ARB_uniform_buffer_object) {
606 _mesa_error(ctx, GL_INVALID_OPERATION, "glUniformBlockBinding");
610 shProg = _mesa_lookup_shader_program_err(ctx, program,
616 _mesa_error(ctx, GL_INVALID_VALUE,
622 if (uniformBlockBinding >= ctx->Const.MaxUniformBufferBindings) {
623 _mesa_error(ctx, GL_INVALID_VALUE,
625 uniformBlockBinding, ctx->Const.MaxUniformBufferBindings);
633 FLUSH_VERTICES(ctx, _NEW_BUFFER_OBJECT);
653 GET_CURRENT_CONTEXT(ctx);
658 if (!ctx->Extensions.ARB_uniform_buffer_object) {
659 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetActiveUniformBlockiv");
663 shProg = _mesa_lookup_shader_program_err(ctx, program,
669 _mesa_error(ctx, GL_INVALID_VALUE,
697 params[i] = _mesa_get_uniform_location(ctx, shProg,
716 _mesa_error(ctx, GL_INVALID_ENUM,
730 GET_CURRENT_CONTEXT(ctx);
734 if (!ctx->Extensions.ARB_uniform_buffer_object) {
735 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetActiveUniformBlockiv");
740 _mesa_error(ctx, GL_INVALID_VALUE,
746 shProg = _mesa_lookup_shader_program_err(ctx, program,
752 _mesa_error(ctx, GL_INVALID_VALUE,
770 GET_CURRENT_CONTEXT(ctx);
773 if (!ctx->Extensions.ARB_uniform_buffer_object) {
774 _mesa_error(ctx, GL_INVALID_OPERATION, "glGetActiveUniformBlockiv");
779 _mesa_error(ctx, GL_INVALID_VALUE,
785 ASSERT_OUTSIDE_BEGIN_END(ctx);
787 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveUniformName");
793 _mesa_error(ctx, GL_INVALID_VALUE, "glGetActiveUniform(index)");
807 _mesa_init_shader_uniform_dispatch(const struct gl_context *ctx,
837 if (ctx->API != API_OPENGLES2 || _mesa_is_gles3(ctx)) {