Lines Matching defs:storage
247 /* If the driver storage pointer in remap table is -1, we ignore silently.
379 src = &uni->storage[offset * elements * dmul];
817 * Propagate some values from uniform backing storage to driver storage
819 * Values propagated from uniform backing storage to driver storage
825 * \param uni Uniform whose data is to be propagated to driver storage
841 /* Store the data in the driver's requested type in the driver's storage
852 (uint8_t *) (&uni->storage[array_index * (dmul * components * vectors)].i);
936 /* After adding each uniform to the parameter list, connect the storage for
947 struct gl_uniform_storage *storage =
950 /* Do not associate any uniform storage to built-in uniforms */
951 if (storage->builtin)
960 dmul = storage->type->vector_elements * sizeof(float);
965 switch (storage->type->base_type) {
967 if (storage->type->vector_elements > 2)
978 if (storage->type->vector_elements > 2)
989 if (storage->type->vector_elements > 2)
995 columns = storage->type->matrix_columns;
1020 _mesa_uniform_attach_driver_storage(storage, dmul * columns, dmul,
1029 if (storage->is_bindless && (prog->sh.NumBindlessSamplers ||
1031 unsigned array_elements = MAX2(1, storage->array_elements);
1034 unsigned unit = storage->opaque[shader_type].index + j;
1036 if (storage->type->without_array()->is_sampler()) {
1040 } else if (storage->type->without_array()->is_image()) {
1048 /* After attaching the driver's storage to the uniform, propagate any
1052 unsigned array_elements = MAX2(1, storage->array_elements);
1054 (storage->is_bindless || !storage->type->contains_opaque())) {
1055 const int dmul = storage->type->is_64bit() ? 2 : 1;
1057 storage->type->vector_elements *
1058 storage->type->matrix_columns;
1060 for (unsigned s = 0; s < storage->num_driver_storage; s++) {
1062 storage->driver_storage[s].data;
1063 memcpy(uni_storage, storage->storage,
1064 sizeof(storage->storage[0]) * components *
1068 _mesa_propagate_uniforms_to_driver_storage(storage, 0,
1084 * storage is only associated with the original parameter list.
1261 /* Opaque uniforms have no storage unless they are bindless */
1284 copy_uniforms_to_storage(gl_constant_value *storage,
1297 unsigned size = sizeof(storage[0]) * components * count * size_mul;
1299 if (!memcmp(storage, values, size))
1305 memcpy(storage, values, size);
1310 uint16_t *dst = (uint16_t*)storage;
1349 uint64_t *dst = (uint64_t*)storage;
1374 gl_constant_value *dst = storage;
1487 /* Store the data in the "actual type" backing storage for the uniform.
1490 gl_constant_value *storage;
1500 storage = (gl_constant_value *)
1503 if (copy_uniforms_to_storage(storage, uni, ctx, count, values, size_mul,
1508 storage = &uni->storage[size_mul * components * offset];
1509 if (copy_uniforms_to_storage(storage, uni, ctx, count, values, size_mul,
1624 gl_constant_value *storage,
1634 const unsigned size = sizeof(storage[0]) * elements * count * size_mul;
1643 uint16_t *dst = (uint16_t*)storage;
1690 uint16_t *dst = (uint16_t*)storage;
1736 if (!memcmp(storage, values, size))
1742 memcpy(storage, values, size);
1747 float *dst = (float*)storage;
1791 double *dst = (double*)storage;
1933 /* Store the data in the "actual type" backing storage for the uniform.
1935 gl_constant_value *storage;
1947 storage = (gl_constant_value *)
1951 if (copy_uniform_matrix_to_storage(ctx, storage, uni, count, values,
1958 storage = &uni->storage[size_mul * elements * offset];
1959 if (copy_uniform_matrix_to_storage(ctx, storage, uni, count, values,
2079 /* Store the data in the "actual type" backing storage for the uniform.
2085 void *storage = (gl_constant_value *)
2087 unsigned size = sizeof(uni->storage[0]) * components * count * size_mul;
2089 if (!memcmp(storage, values, size))
2096 memcpy(storage, values, size);
2101 void *storage = &uni->storage[size_mul * components * offset];
2102 unsigned size = sizeof(uni->storage[0]) * components * count * size_mul;
2104 if (!memcmp(storage, values, size))
2108 memcpy(storage, values, size);