Lines Matching defs:rtex

815 	struct r600_texture *rtex = (struct r600_texture*)surf->base.texture;
826 if (rtex->db_compatible && !r600_can_sample_zs(rtex, false)) {
828 rtex = rtex->flushed_depth_texture;
829 assert(rtex);
832 offset = (uint64_t)rtex->surface.u.legacy.level[level].offset_256B * 256;
836 pitch = rtex->surface.u.legacy.level[level].nblk_x / 8 - 1;
837 slice = (rtex->surface.u.legacy.level[level].nblk_x * rtex->surface.u.legacy.level[level].nblk_y) / 64;
842 switch (rtex->surface.u.legacy.level[level].mode) {
881 do_endian_swap = !rtex->db_compatible;
960 r600_resource_reference(&surf->cb_buffer_cmask, &rtex->resource);
961 r600_resource_reference(&surf->cb_buffer_fmask, &rtex->resource);
963 if (rtex->cmask.size) {
964 surf->cb_color_cmask = rtex->cmask.offset >> 8;
965 surf->cb_color_mask |= S_028100_CMASK_BLOCK_MAX(rtex->cmask.slice_tile_max);
967 if (rtex->fmask.size) {
969 surf->cb_color_fmask = rtex->fmask.offset >> 8;
970 surf->cb_color_mask |= S_028100_FMASK_TILE_MAX(rtex->fmask.slice_tile_max);
984 r600_texture_get_cmask_info(&rscreen->b, rtex, &cmask);
985 r600_texture_get_fmask_info(&rscreen->b, rtex, 8, &fmask);
1045 struct r600_texture *rtex = (struct r600_texture*)surf->base.texture;
1049 offset = (uint64_t)rtex->surface.u.legacy.level[level].offset_256B * 256;
1050 pitch = rtex->surface.u.legacy.level[level].nblk_x / 8 - 1;
1051 slice = (rtex->surface.u.legacy.level[level].nblk_x * rtex->surface.u.legacy.level[level].nblk_y) / 64;
1055 switch (rtex->surface.u.legacy.level[level].mode) {
1074 surf->db_prefetch_limit = (rtex->surface.u.legacy.level[level].nblk_y / 8) - 1;
1076 if (r600_htile_enabled(rtex, level)) {
1077 surf->db_htile_data_base = rtex->htile_offset >> 8;
1093 struct r600_texture *rtex;
1133 rtex = (struct r600_texture*)surf->base.texture;
1150 if (rtex->fmask.size) {
1555 struct r600_texture *rtex = (struct r600_texture *)a->rsurf->base.texture;
1558 radeon_set_context_reg(cs, R_02802C_DB_DEPTH_CLEAR, fui(rtex->depth_clear_value));
1561 reloc_idx = radeon_add_to_buffer_list(&rctx->b, &rctx->b.gfx, &rtex->resource,