Lines Matching defs:tex
558 void (*make_texture_descriptor)(struct si_screen *screen, struct si_texture *tex, bool sampler,
1329 void si_decompress_subresource(struct pipe_context *ctx, struct pipe_resource *tex, unsigned planes,
1336 void si_decompress_dcc(struct si_context *sctx, struct si_texture *tex);
1382 bool vi_dcc_get_clear_info(struct si_context *sctx, struct si_texture *tex, unsigned level,
1435 void si_retile_dcc(struct si_context *sctx, struct si_texture *tex);
1438 void si_compute_expand_fmask(struct pipe_context *ctx, struct pipe_resource *tex);
1547 void *gfx9_create_clear_dcc_msaa_cs(struct si_context *sctx, struct si_texture *tex);
1590 void si_eliminate_fast_color_clear(struct si_context *sctx, struct si_texture *tex,
1592 void si_texture_discard_cmask(struct si_screen *sscreen, struct si_texture *tex);
1594 void si_print_texture_info(struct si_screen *sscreen, struct si_texture *tex,
1602 bool vi_dcc_formats_are_incompatible(struct pipe_resource *tex, unsigned level,
1604 void vi_disable_dcc_if_incompatible_format(struct si_context *sctx, struct pipe_resource *tex,
1608 bool si_texture_disable_dcc(struct si_context *sctx, struct si_texture *tex);
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];
1839 static inline bool si_can_sample_zs(struct si_texture *tex, bool stencil_sampler)
1841 return (stencil_sampler && tex->can_sample_s) || (!stencil_sampler && tex->can_sample_z);
1844 static inline bool si_htile_enabled(struct si_texture *tex, unsigned level, unsigned zs_mask)
1846 if (zs_mask == PIPE_MASK_S && (tex->htile_stencil_disabled || !tex->surface.has_stencil))
1849 if (!tex->is_depth || !tex->surface.meta_offset)
1852 struct si_screen *sscreen = (struct si_screen *)tex->buffer.b.b.screen;
1854 return level < tex->surface.num_meta_levels;
1864 static inline bool vi_tc_compat_htile_enabled(struct si_texture *tex, unsigned level,
1867 assert(!tex->tc_compatible_htile || tex->surface.meta_offset);
1868 return tex->tc_compatible_htile && si_htile_enabled(tex, level, zs_mask);