Lines Matching refs:shProg
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;
319 shProg = _mesa_lookup_shader_program_err(ctx, program, "glProgramUniform3f");
320 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_FLOAT, 3);
329 struct gl_shader_program *shProg;
334 shProg = _mesa_lookup_shader_program_err(ctx, program, "glProgramUniform4f");
335 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_FLOAT, 4);
342 struct gl_shader_program *shProg =
345 _mesa_uniform(ctx, shProg, location, 1, &v0, GLSL_TYPE_INT, 1);
353 struct gl_shader_program *shProg;
356 shProg = _mesa_lookup_shader_program_err(ctx, program, "glProgramUniform2i");
357 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_INT, 2);
366 struct gl_shader_program *shProg;
370 shProg = _mesa_lookup_shader_program_err(ctx, program, "glProgramUniform3i");
371 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_INT, 3);
380 struct gl_shader_program *shProg;
385 shProg = _mesa_lookup_shader_program_err(ctx, program, "glProgramUniform4i");
386 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_INT, 4);
394 struct gl_shader_program *shProg =
397 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_FLOAT, 1);
405 struct gl_shader_program *shProg =
408 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_FLOAT, 2);
416 struct gl_shader_program *shProg =
419 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_FLOAT, 3);
427 struct gl_shader_program *shProg =
430 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_FLOAT, 4);
438 struct gl_shader_program *shProg =
441 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_INT, 1);
449 struct gl_shader_program *shProg =
452 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_INT, 2);
460 struct gl_shader_program *shProg =
463 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_INT, 3);
471 struct gl_shader_program *shProg =
474 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_INT, 4);
582 struct gl_shader_program *shProg =
585 _mesa_uniform(ctx, shProg, location, 1, &v0, GLSL_TYPE_UINT, 1);
593 struct gl_shader_program *shProg;
596 shProg = _mesa_lookup_shader_program_err(ctx, program,
598 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_UINT, 2);
607 struct gl_shader_program *shProg;
611 shProg = _mesa_lookup_shader_program_err(ctx, program,
613 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_UINT, 3);
622 struct gl_shader_program *shProg;
627 shProg = _mesa_lookup_shader_program_err(ctx, program, "glProgramUniform4ui");
628 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_UINT, 4);
636 struct gl_shader_program *shProg =
639 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_UINT, 1);
647 struct gl_shader_program *shProg =
650 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_UINT, 2);
658 struct gl_shader_program *shProg =
661 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_UINT, 3);
669 struct gl_shader_program *shProg =
672 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_UINT, 4);
682 struct gl_shader_program *shProg =
685 _mesa_uniform_matrix(ctx, shProg, 2, 2, location, count, transpose, value, GLSL_TYPE_FLOAT);
693 struct gl_shader_program *shProg =
696 _mesa_uniform_matrix(ctx, shProg, 3, 3, location, count, transpose, value, GLSL_TYPE_FLOAT);
704 struct gl_shader_program *shProg =
707 _mesa_uniform_matrix(ctx, shProg, 4, 4, location, count, transpose, value, GLSL_TYPE_FLOAT);
775 struct gl_shader_program *shProg =
778 _mesa_uniform_matrix(ctx, shProg, 2, 3, location, count, transpose, value, GLSL_TYPE_FLOAT);
786 struct gl_shader_program *shProg =
789 _mesa_uniform_matrix(ctx, shProg, 3, 2, location, count, transpose, value, GLSL_TYPE_FLOAT);
797 struct gl_shader_program *shProg =
800 _mesa_uniform_matrix(ctx, shProg, 2, 4, location, count, transpose, value, GLSL_TYPE_FLOAT);
808 struct gl_shader_program *shProg =
811 _mesa_uniform_matrix(ctx, shProg, 4, 2, location, count, transpose, value, GLSL_TYPE_FLOAT);
819 struct gl_shader_program *shProg =
822 _mesa_uniform_matrix(ctx, shProg, 3, 4, location, count, transpose, value, GLSL_TYPE_FLOAT);
830 struct gl_shader_program *shProg =
833 _mesa_uniform_matrix(ctx, shProg, 4, 3, location, count, transpose, value, GLSL_TYPE_FLOAT);
903 struct gl_shader_program *shProg;
907 shProg = _mesa_lookup_shader_program_err(ctx, programObj,
909 if (!shProg)
917 if (shProg->data->LinkStatus == GL_FALSE) {
923 return _mesa_program_resource_location(shProg, GL_UNIFORM, name);
931 struct gl_shader_program *shProg;
938 shProg = _mesa_lookup_shader_program_err(ctx, program,
940 if (!shProg)
944 _mesa_program_resource_find_name(shProg, GL_UNIFORM_BLOCK,
949 return _mesa_program_resource_index(shProg, res);
960 struct gl_shader_program *shProg;
967 shProg = _mesa_lookup_shader_program_err(ctx, program,
969 if (!shProg)
980 _mesa_program_resource_find_name(shProg, GL_UNIFORM, uniformNames[i],
982 uniformIndices[i] = _mesa_program_resource_index(shProg, res);
992 struct gl_shader_program *shProg;
999 shProg = _mesa_lookup_shader_program_err(ctx, program,
1001 if (!shProg)
1004 if (uniformBlockIndex >= shProg->data->NumUniformBlocks) {
1007 uniformBlockIndex, shProg->data->NumUniformBlocks);
1018 if (shProg->data->UniformBlocks[uniformBlockIndex].Binding !=
1024 shProg->data->UniformBlocks[uniformBlockIndex].Binding =
1035 struct gl_shader_program *shProg;
1042 shProg = _mesa_lookup_shader_program_err(ctx, program,
1044 if (!shProg)
1047 if (shaderStorageBlockIndex >= shProg->data->NumShaderStorageBlocks) {
1051 shProg->data->NumShaderStorageBlocks);
1063 if (shProg->data->ShaderStorageBlocks[shaderStorageBlockIndex].Binding !=
1069 shProg->data->ShaderStorageBlocks[shaderStorageBlockIndex].Binding =
1078 mesa_bufferiv(struct gl_shader_program *shProg, GLenum type,
1083 _mesa_program_resource_find_index(shProg, type, index);
1093 _mesa_program_resource_prop(shProg, res, index, GL_BUFFER_BINDING,
1098 _mesa_program_resource_prop(shProg, res, index, GL_BUFFER_DATA_SIZE,
1102 _mesa_program_resource_prop(shProg, res, index, GL_NAME_LENGTH,
1107 _mesa_program_resource_prop(shProg, res, index, GL_NUM_ACTIVE_VARIABLES,
1112 _mesa_program_resource_prop(shProg, res, index, GL_ACTIVE_VARIABLES,
1117 _mesa_program_resource_prop(shProg, res, index,
1124 _mesa_program_resource_prop(shProg, res, index,
1131 _mesa_program_resource_prop(shProg, res, index,
1138 _mesa_program_resource_prop(shProg, res, index,
1144 _mesa_program_resource_prop(shProg, res, index,
1150 _mesa_program_resource_prop(shProg, res, index,
1170 struct gl_shader_program *shProg;
1177 shProg = _mesa_lookup_shader_program_err(ctx, program,
1179 if (!shProg)
1182 mesa_bufferiv(shProg, GL_UNIFORM_BLOCK, uniformBlockIndex, pname, params,
1194 struct gl_shader_program *shProg;
1208 shProg = _mesa_lookup_shader_program_err(ctx, program,
1210 if (!shProg)
1214 _mesa_get_program_resource_name(shProg, GL_UNIFORM_BLOCK,
1226 struct gl_shader_program *shProg;
1240 shProg = _mesa_lookup_shader_program_err(ctx, program, "glGetActiveUniformName");
1242 if (!shProg)
1245 _mesa_get_program_resource_name(shProg, GL_UNIFORM, uniformIndex, bufSize,
1254 struct gl_shader_program *shProg;
1262 shProg = _mesa_lookup_shader_program_err(ctx, program,
1264 if (!shProg)
1267 mesa_bufferiv(shProg, GL_ATOMIC_COUNTER_BUFFER, bufferIndex, pname, params,
1425 struct gl_shader_program *shProg =
1428 _mesa_uniform(ctx, shProg, location, 1, &v0, GLSL_TYPE_DOUBLE, 1);
1436 struct gl_shader_program *shProg;
1439 shProg = _mesa_lookup_shader_program_err(ctx, program, "glProgramUniform2d");
1440 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_DOUBLE, 2);
1449 struct gl_shader_program *shProg;
1453 shProg = _mesa_lookup_shader_program_err(ctx, program, "glProgramUniform3d");
1454 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_DOUBLE, 3);
1463 struct gl_shader_program *shProg;
1468 shProg = _mesa_lookup_shader_program_err(ctx, program, "glProgramUniform4d");
1469 _mesa_uniform(ctx, shProg, location, 1, v, GLSL_TYPE_DOUBLE, 4);
1477 struct gl_shader_program *shProg =
1480 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_DOUBLE, 1);
1488 struct gl_shader_program *shProg =
1491 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_DOUBLE, 2);
1499 struct gl_shader_program *shProg =
1502 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_DOUBLE, 3);
1510 struct gl_shader_program *shProg =
1513 _mesa_uniform(ctx, shProg, location, count, value, GLSL_TYPE_DOUBLE, 4);
1521 struct gl_shader_program *shProg =
1524 _mesa_uniform_matrix(ctx, shProg, 2, 2, location, count, transpose, value, GLSL_TYPE_DOUBLE);
1532 struct gl_shader_program *shProg =
1535 _mesa_uniform_matrix(ctx, shProg, 3, 3, location, count, transpose, value, GLSL_TYPE_DOUBLE);
1543 struct gl_shader_program *shProg =
1546 _mesa_uniform_matrix(ctx, shProg, 4, 4, location, count, transpose, value, GLSL_TYPE_DOUBLE);
1554 struct gl_shader_program *shProg =
1557 shProg, 2, 3, location, count, transpose, value, GLSL_TYPE_DOUBLE);
1565 struct gl_shader_program *shProg =
1568 _mesa_uniform_matrix(ctx, shProg, 3, 2, location, count, transpose, value, GLSL_TYPE_DOUBLE);
1576 struct gl_shader_program *shProg =
1579 _mesa_uniform_matrix(ctx, shProg, 2, 4, location, count, transpose, value, GLSL_TYPE_DOUBLE);
1587 struct gl_shader_program *shProg =
1590 _mesa_uniform_matrix(ctx, shProg, 4, 2, location, count, transpose, value, GLSL_TYPE_DOUBLE);
1598 struct gl_shader_program *shProg =
1601 _mesa_uniform_matrix(ctx, shProg, 3, 4, location, count, transpose, value, GLSL_TYPE_DOUBLE);
1609 struct gl_shader_program *shProg =
1612 _mesa_uniform_matrix(ctx, shProg, 4, 3, location, count, transpose, value, GLSL_TYPE_DOUBLE);