Lines Matching refs:rtex
173 static unsigned r600_tex_dim(struct r600_texture *rtex, in r600_tex_dim() argument
176 unsigned res_target = rtex->resource.b.b.target; in r600_tex_dim()
1112 struct r600_texture *rtex, in evergreen_set_color_surface_common() argument
1127 color->offset = rtex->surface.u.legacy.level[level].offset; in evergreen_set_color_surface_common()
1131 color->offset += rtex->resource.gpu_address; in evergreen_set_color_surface_common()
1135 pitch = (rtex->surface.u.legacy.level[level].nblk_x) / 8 - 1; in evergreen_set_color_surface_common()
1136 …slice = (rtex->surface.u.legacy.level[level].nblk_x * rtex->surface.u.legacy.level[level].nblk_y) … in evergreen_set_color_surface_common()
1142 switch (rtex->surface.u.legacy.level[level].mode) { in evergreen_set_color_surface_common()
1150 non_disp_tiling = rtex->non_disp_tiling; in evergreen_set_color_surface_common()
1154 non_disp_tiling = rtex->non_disp_tiling; in evergreen_set_color_surface_common()
1157 tile_split = rtex->surface.u.legacy.tile_split; in evergreen_set_color_surface_common()
1158 macro_aspect = rtex->surface.u.legacy.mtilea; in evergreen_set_color_surface_common()
1159 bankw = rtex->surface.u.legacy.bankw; in evergreen_set_color_surface_common()
1160 bankh = rtex->surface.u.legacy.bankh; in evergreen_set_color_surface_common()
1161 if (rtex->fmask.size) in evergreen_set_color_surface_common()
1162 fmask_bankh = rtex->fmask.bank_height; in evergreen_set_color_surface_common()
1164 fmask_bankh = rtex->surface.u.legacy.bankh; in evergreen_set_color_surface_common()
1194 if (rtex->resource.b.b.nr_samples > 1) { in evergreen_set_color_surface_common()
1195 unsigned log_samples = util_logbase2(rtex->resource.b.b.nr_samples); in evergreen_set_color_surface_common()
1219 do_endian_swap = !rtex->db_compatible; in evergreen_set_color_surface_common()
1251 if (rtex->fmask.size) { in evergreen_set_color_surface_common()
1275 if (rtex->fmask.size) { in evergreen_set_color_surface_common()
1276 color->fmask = (rtex->resource.gpu_address + rtex->fmask.offset) >> 8; in evergreen_set_color_surface_common()
1277 color->fmask_slice = S_028C88_TILE_MAX(rtex->fmask.slice_tile_max); in evergreen_set_color_surface_common()
1320 struct r600_texture *rtex = (struct r600_texture*)surf->base.texture; in evergreen_init_color_surface() local
1324 evergreen_set_color_surface_common(rctx, rtex, level, in evergreen_init_color_surface()
1352 struct r600_texture *rtex = (struct r600_texture*)surf->base.texture; in evergreen_init_depth_surface() local
1354 struct legacy_surf_level *levelinfo = &rtex->surface.u.legacy.level[level]; in evergreen_init_depth_surface()
1363 offset = rtex->resource.gpu_address; in evergreen_init_depth_surface()
1364 offset += rtex->surface.u.legacy.level[level].offset; in evergreen_init_depth_surface()
1366 switch (rtex->surface.u.legacy.level[level].mode) { in evergreen_init_depth_surface()
1376 tile_split = rtex->surface.u.legacy.tile_split; in evergreen_init_depth_surface()
1377 macro_aspect = rtex->surface.u.legacy.mtilea; in evergreen_init_depth_surface()
1378 bankw = rtex->surface.u.legacy.bankw; in evergreen_init_depth_surface()
1379 bankh = rtex->surface.u.legacy.bankh; in evergreen_init_depth_surface()
1394 if (rscreen->b.chip_class == CAYMAN && rtex->resource.b.b.nr_samples > 1) { in evergreen_init_depth_surface()
1395 surf->db_z_info |= S_028040_NUM_SAMPLES(util_logbase2(rtex->resource.b.b.nr_samples)); in evergreen_init_depth_surface()
1408 if (rtex->surface.has_stencil) { in evergreen_init_depth_surface()
1410 unsigned stile_split = rtex->surface.u.legacy.stencil_tile_split; in evergreen_init_depth_surface()
1414 stencil_offset = rtex->surface.u.legacy.stencil_level[level].offset; in evergreen_init_depth_surface()
1415 stencil_offset += rtex->resource.gpu_address; in evergreen_init_depth_surface()
1429 if (r600_htile_enabled(rtex, level)) { in evergreen_init_depth_surface()
1430 uint64_t va = rtex->resource.gpu_address + rtex->htile_offset; in evergreen_init_depth_surface()
1447 struct r600_texture *rtex; in evergreen_set_framebuffer_state() local
1478 rtex = (struct r600_texture*)surf->base.texture; in evergreen_set_framebuffer_state()
1490 if (rtex->fmask.size) { in evergreen_set_framebuffer_state()
1711 struct r600_texture *rtex; in evergreen_emit_image_state() local
1727 rtex = (struct r600_texture *)image->base.resource; in evergreen_emit_image_state()
1729 rtex = NULL; in evergreen_emit_image_state()
1755 …radeon_emit(cs, rtex ? rtex->cmask.base_address_reg : image->cb_color_base); /* R_028C7C_CB_COLOR0… in evergreen_emit_image_state()
1756 radeon_emit(cs, rtex ? rtex->cmask.slice_tile_max : 0); /* R_028C80_CB_COLOR0_CMASK_SLICE */ in evergreen_emit_image_state()
1759 radeon_emit(cs, rtex ? rtex->color_clear_value[0] : 0); /* R_028C8C_CB_COLOR0_CLEAR_WORD0 */ in evergreen_emit_image_state()
1760 radeon_emit(cs, rtex ? rtex->color_clear_value[1] : 0); /* R_028C90_CB_COLOR0_CLEAR_WORD1 */ in evergreen_emit_image_state()
2053 struct r600_texture *rtex = (struct r600_texture *)a->rsurf->base.texture; in evergreen_emit_db_state() local
2056 radeon_set_context_reg(cs, R_02802C_DB_DEPTH_CLEAR, fui(rtex->depth_clear_value)); in evergreen_emit_db_state()
2060 reloc_idx = radeon_add_to_buffer_list(&rctx->b, &rctx->b.gfx, &rtex->resource, in evergreen_emit_db_state()
4204 struct r600_texture *rtex = (struct r600_texture *)image; in evergreen_set_shader_images() local
4205 if (!is_buffer & rtex->db_compatible) in evergreen_set_shader_images()
4210 if (!is_buffer && rtex->cmask.size) in evergreen_set_shader_images()
4216 evergreen_set_color_surface_common(rctx, rtex, in evergreen_set_shader_images()