Lines Matching full:major
141 * increases the ratio between its major and minor axes in a in intel_calculate_tile_dimensions()
151 /* Make sure that the minimum major axis where the search starts in intel_calculate_tile_dimensions()
158 /* Stop search at a an aspect ratio of approximately 2 (A major in intel_calculate_tile_dimensions()
173 for (unsigned major = min_major; major <= max_major;) { in intel_calculate_tile_dimensions() local
175 * present major parameter. in intel_calculate_tile_dimensions()
177 const unsigned minor = MAX2(1, tile_surf / major); in intel_calculate_tile_dimensions()
180 * used in the X-major orientation. in intel_calculate_tile_dimensions()
182 const unsigned horiz_tiles_x = DIV_ROUND_UP(fb_block_width, major); in intel_calculate_tile_dimensions()
186 /* Calculate the number of blocks we need to add to the major in intel_calculate_tile_dimensions()
187 * axis for the number of X-major tile columns (horiz_tiles_x) in intel_calculate_tile_dimensions()
189 * to exhaustive search, since an increase in major can only in intel_calculate_tile_dimensions()
191 * as well, vert_tiles_x is monotonically increasing with major. in intel_calculate_tile_dimensions()
193 * If the number of tile columns is already 1 the X-major in intel_calculate_tile_dimensions()
196 * Y-major search -- If the Y-major solution cannot be improved in intel_calculate_tile_dimensions()
200 DIV_ROUND_UP(fb_block_width - major * (horiz_tiles_x - 1), in intel_calculate_tile_dimensions()
203 /* Update the best known solution with the present X-major one in intel_calculate_tile_dimensions()
210 best_block_width = major; in intel_calculate_tile_dimensions()
221 * used in the Y-major orientation. in intel_calculate_tile_dimensions()
224 const unsigned vert_tiles_y = DIV_ROUND_UP(fb_block_height, major); in intel_calculate_tile_dimensions()
227 /* Calculate the number of blocks we need to add to the major in intel_calculate_tile_dimensions()
228 * axis for the number of Y-major tile rows (vert_tiles_y) to in intel_calculate_tile_dimensions()
233 DIV_ROUND_UP(fb_block_height - major * (vert_tiles_y - 1), in intel_calculate_tile_dimensions()
236 /* Update the best known solution with the present Y-major one in intel_calculate_tile_dimensions()
244 best_block_height = major; in intel_calculate_tile_dimensions()
253 /* Use the smallest of the computed major increments in order to in intel_calculate_tile_dimensions()
255 * X-major and Y-major searches have terminated major will be in intel_calculate_tile_dimensions()
260 assert(major + delta > major); in intel_calculate_tile_dimensions()
261 major += delta; in intel_calculate_tile_dimensions()