Lines Matching defs:level
49 * Each mipmap-level contains all of it's layers (ie. all cubmap
51 * programmed with the start address of each mipmap level, and hw
52 * derives the layer offset within the level.
93 * surface (layer, level) within. Or rather all the information needed
107 /* Note that for tiled textures, beyond a certain mipmap level (ie.
144 fdl_pitch(const struct fdl_layout *layout, unsigned level)
146 return align(u_minify(layout->pitch0, level), 1 << layout->pitchalign);
154 fdl_ubwc_pitch(const struct fdl_layout *layout, unsigned level)
158 return align(u_minify(layout->ubwc_width0, level), RGB_TILE_WIDTH_ALIGNMENT);
162 fdl_layer_stride(const struct fdl_layout *layout, unsigned level)
167 return layout->slices[level].size0;
172 fdl2_pitch(const struct fdl_layout *layout, unsigned level)
174 uint32_t pitch = fdl_pitch(layout, level);
175 if (level)
181 fdl2_pitch_pixels(const struct fdl_layout *layout, unsigned level)
183 return fdl2_pitch(layout, level) >> fdl_cpp_shift(layout);
187 fdl_surface_offset(const struct fdl_layout *layout, unsigned level,
190 const struct fdl_slice *slice = &layout->slices[level];
191 return slice->offset + fdl_layer_stride(layout, level) * layer;
195 fdl_ubwc_offset(const struct fdl_layout *layout, unsigned level, unsigned layer)
197 const struct fdl_slice *slice = &layout->ubwc_slices[level];
205 fdl_level_linear(const struct fdl_layout *layout, int level)
210 unsigned w = u_minify(layout->width0, level);
218 fdl_tile_mode(const struct fdl_layout *layout, int level)
220 if (layout->tile_mode && fdl_level_linear(layout, level))
227 fdl_ubwc_enabled(const struct fdl_layout *layout, int level)
232 const char *fdl_tile_mode_desc(const struct fdl_layout *layout, int level);