Lines Matching defs:mt
141 void i945_miptree_layout_2d(struct intel_mipmap_tree *mt)
146 GLuint width = mt->width0;
147 GLuint height = mt->height0;
148 GLuint depth = mt->depth0; /* number of array layers. */
150 mt->total_width = mt->width0;
152 if (mt->compressed) {
153 mt->total_width = ALIGN(mt->width0, mt->align_w);
161 if (mt->first_level != mt->last_level) {
164 if (mt->compressed) {
165 mip1_width = ALIGN(minify(mt->width0), mt->align_w)
166 + ALIGN(minify(minify(mt->width0)), mt->align_w);
168 mip1_width = ALIGN(minify(mt->width0), mt->align_w)
169 + minify(minify(mt->width0));
172 if (mip1_width > mt->total_width) {
173 mt->total_width = mip1_width;
177 mt->total_height = 0;
179 for ( level = mt->first_level ; level <= mt->last_level ; level++ ) {
182 intel_miptree_set_level_info(mt, level, x, y, width,
185 img_height = ALIGN(height, mt->align_h);
186 if (mt->compressed)
187 img_height /= mt->align_h;
192 mt->total_height = MAX2(mt->total_height, y + img_height);
196 if (level == mt->first_level + 1) {
197 x += ALIGN(width, mt->align_w);