Lines Matching defs:level
1330 unsigned level, unsigned first_layer, unsigned last_layer,
1382 bool vi_dcc_get_clear_info(struct si_context *sctx, struct si_texture *tex, unsigned level,
1598 bool si_texture_commit(struct si_context *ctx, struct si_resource *res, unsigned level,
1602 bool vi_dcc_formats_are_incompatible(struct pipe_resource *tex, unsigned level,
1605 unsigned level, enum pipe_format view_format);
1668 static inline bool vi_dcc_enabled(struct si_texture *tex, unsigned level)
1670 return !tex->is_depth && tex->surface.meta_offset && level < tex->surface.num_meta_levels;
1673 static inline unsigned si_tile_mode_index(struct si_texture *tex, unsigned level, bool stencil)
1676 return tex->surface.u.legacy.zs.stencil_tiling_index[level];
1678 return tex->surface.u.legacy.tiling_index[level];
1844 static inline bool si_htile_enabled(struct si_texture *tex, unsigned level, unsigned zs_mask)
1854 return level < tex->surface.num_meta_levels;
1857 * a decompression pass for every mipmap level before texturing, so compress
1858 * only one level to reduce the number of decompression passes to a minimum.
1860 return level == 0;
1864 static inline bool vi_tc_compat_htile_enabled(struct si_texture *tex, unsigned level,
1868 return tex->tc_compatible_htile && si_htile_enabled(tex, level, zs_mask);