Lines Matching defs:offset

2506       const unsigned offset = type->is_sampler() ? 0 : 4;
2525 return names[offset + type_idx];
2532 return names[offset + type_idx];
2540 return names[offset + type_idx];
2561 return names[offset + type_idx];
2588 return names[offset + type_idx];
2595 return names[offset + type_idx];
2602 return names[offset + type_idx];
2623 return names[offset + type_idx];
2643 return names[offset + type_idx];
2650 return names[offset + type_idx];
2657 return names[offset + type_idx];
2678 return names[offset + type_idx];
2872 * The offset must be a multiple of the size of the first component of
2875 * the offset must also be a multiple of 8, and the space taken in the
2904 int xfb_offset = t_without_array->fields.structure[i].offset;
2909 /* Nested structs or interface block without offset may not have had an
2910 * offset applied yet so return.
3838 qual->offset, &qual_xfb_offset) &&
3841 var->data.offset = qual_xfb_offset;
3858 unsigned *offset =
3861 if (*offset % ATOMIC_COUNTER_SIZE)
3863 "misaligned atomic counter offset");
3865 var->data.offset = *offset;
3866 *offset += var->type->atomic_size();
5144 /* An offset-qualified atomic counter declaration sets the default
5145 * offset for the next declaration within the same atomic counter
5156 && process_qualifier_constant(state, &loc, "offset",
5157 type->qualifier.offset,
5229 * to set the default offset qualifier.
7626 fields[i].offset = -1;
7686 if (process_qualifier_constant(state, &loc, "offset",
7687 qual->offset, &qual_offset)) {
7691 "offset overlaps previous member");
7694 _mesa_glsl_error(&loc, state, "layout qualifier offset "
7698 fields[i].offset = qual_offset;
7701 _mesa_glsl_error(&loc, state, "offset can only be used "
7708 unsigned offset = fields[i].offset != -1 ? fields[i].offset :
7722 fields[i].offset = glsl_align(offset, member_align);
7723 next_offset = fields[i].offset + size;
7727 fields[i].offset = glsl_align(offset, expl_align);
7728 next_offset = fields[i].offset + size;
7737 * "The given offset applies to the first component of the first
7740 * the next available offset aligned to a multiple of that
7747 qual->offset, &xfb_offset)) {
7748 fields[i].offset = xfb_offset;
7749 block_xfb_offset = fields[i].offset +
7755 fields[i].offset = glsl_align(block_xfb_offset, align);
8135 layout.offset, &qual_xfb_offset)) {
8288 fields[i].offset =
8289 earlier_per_vertex->fields.structure[j].offset;
8607 if (fields[i].offset != -1)
8609 var->data.offset = fields[i].offset;