Home | History | Annotate | Download | only in main

Lines Matching refs:uni

59    const struct gl_uniform_storage *const uni = &shProg->UniformStorage[index];
62 _mesa_copy_string(nameOut, maxLength, length, uni->name);
69 *size = MAX2(1, uni->array_elements);
73 *type = uni->type->gl_type;
109 const struct gl_uniform_storage *uni = &shProg->UniformStorage[index];
113 params[i] = uni->type->gl_type;
120 params[i] = MAX2(1, uni->array_elements);
124 params[i] = strlen(uni->name) + 1;
128 params[i] = uni->block_index;
132 params[i] = uni->offset;
136 params[i] = uni->array_stride;
140 params[i] = uni->matrix_stride;
144 params[i] = uni->row_major;
269 struct gl_uniform_storage *uni;
276 uni = &shProg->UniformStorage[loc];
279 unsigned elements = (uni->type->is_sampler())
280 ? 1 : uni->type->components();
286 &uni->storage[offset * elements];
306 if (returnType == uni->type->base_type
311 (uni->type->base_type == GLSL_TYPE_INT
312 || uni->type->base_type == GLSL_TYPE_UINT
313 || uni->type->base_type == GLSL_TYPE_SAMPLER))) {
326 switch (uni->type->base_type) {
345 switch (uni->type->base_type) {
390 const struct gl_uniform_storage *uni)
399 shProg->Name, extra, uni->name, location, uni->type->name,
465 * \param uni Uniform whose data is to be propagated to driver storage
466 * \param array_index If \c uni is an array, this is the element of
471 _mesa_propagate_uniforms_to_driver_storage(struct gl_uniform_storage *uni,
479 const unsigned components = MAX2(1, uni->type->vector_elements);
480 const unsigned vectors = MAX2(1, uni->type->matrix_columns);
487 for (i = 0; i < uni->num_driver_storage; i++) {
488 struct gl_uniform_driver_storage *const store = &uni->driver_storage[i];
493 (uint8_t *) (&uni->storage[array_index * (components * vectors)].i);
584 struct gl_uniform_storage *uni;
592 uni = &shProg->UniformStorage[loc];
663 if (uni->type->is_sampler()) {
666 components = uni->type->vector_elements;
670 switch (uni->type->base_type) {
678 match = (basicType == uni->type->base_type);
682 if (uni->type->is_matrix() || components != src_components || !match) {
689 false, shProg, location, uni);
709 if (uni->type->is_sampler()) {
737 if (uni->array_elements != 0) {
738 count = MIN2(count, (int) (uni->array_elements - offset));
745 if (!uni->type->is_boolean()) {
746 memcpy(&uni->storage[components * offset], values,
747 sizeof(uni->storage[0]) * components * count);
751 union gl_constant_value *dst = &uni->storage[components * offset];
764 uni->initialized = true;
766 _mesa_propagate_uniforms_to_driver_storage(uni, offset, count);
771 if (uni->type->is_sampler()) {
775 shProg->SamplerUnits[uni->sampler + offset + i] =
837 struct gl_uniform_storage *uni;
845 uni = &shProg->UniformStorage[loc];
846 if (!uni->type->is_matrix()) {
852 assert(!uni->type->is_sampler());
853 vectors = uni->type->matrix_columns;
854 components = uni->type->vector_elements;
877 bool(transpose), shProg, location, uni);
891 if (uni->array_elements != 0) {
892 count = MIN2(count, (int) (uni->array_elements - offset));
902 memcpy(&uni->storage[elements * offset], values,
903 sizeof(uni->storage[0]) * elements * count);
908 float *dst = &uni->storage[elements * offset].f;
922 uni->initialized = true;
924 _mesa_propagate_uniforms_to_driver_storage(uni, offset, count);