Lines Matching refs:rtex
444 struct r600_texture *rtex, in si_blit_decompress_color() argument
456 level_mask &= rtex->dirty_level_mask; in si_blit_decompress_color()
469 assert(rtex->dcc_offset); in si_blit_decompress_color()
473 if (!vi_dcc_enabled(rtex, i)) in si_blit_decompress_color()
476 } else if (rtex->fmask.size) { in si_blit_decompress_color()
489 max_layer = util_max_layer(&rtex->resource.b.b, level); in si_blit_decompress_color()
495 surf_tmpl.format = rtex->resource.b.b.format; in si_blit_decompress_color()
499 cbsurf = ctx->create_surface(ctx, &rtex->resource.b.b, &surf_tmpl); in si_blit_decompress_color()
520 rtex->dirty_level_mask &= ~(1 << level); in si_blit_decompress_color()
525 si_make_CB_shader_coherent(sctx, rtex->resource.b.b.nr_samples, in si_blit_decompress_color()
526 vi_dcc_enabled(rtex, first_level)); in si_blit_decompress_color()
822 struct r600_texture *rtex = (struct r600_texture*)tex; in si_decompress_subresource() local
824 if (rtex->db_compatible) { in si_decompress_subresource()
827 if (!rtex->surface.has_stencil) in si_decompress_subresource()
839 si_decompress_depth(sctx, rtex, planes, in si_decompress_subresource()
842 } else if (rtex->fmask.size || rtex->cmask.size || rtex->dcc_offset) { in si_decompress_subresource()
856 si_blit_decompress_color(ctx, rtex, level, level, in si_decompress_subresource()
1260 struct r600_texture *rtex = (struct r600_texture *)tex; in si_generate_mipmap() local
1274 rtex->dirty_level_mask &= ~u_bit_consecutive(base_level + 1, in si_generate_mipmap()
1277 sctx->generate_mipmap_for_depth = rtex->is_depth; in si_generate_mipmap()
1292 struct r600_texture *rtex = (struct r600_texture*)res; in si_flush_resource() local
1295 assert(!rtex->dcc_separate_buffer || rtex->dcc_gather_statistics); in si_flush_resource()
1299 if (rtex->dcc_separate_buffer && !rtex->separate_dcc_dirty) in si_flush_resource()
1302 if (!rtex->is_depth && (rtex->cmask.size || rtex->dcc_offset)) { in si_flush_resource()
1303 si_blit_decompress_color(ctx, rtex, 0, res->last_level, in si_flush_resource()
1305 rtex->dcc_separate_buffer != NULL); in si_flush_resource()
1309 if (rtex->dcc_gather_statistics && rtex->separate_dcc_dirty) { in si_flush_resource()
1310 rtex->separate_dcc_dirty = false; in si_flush_resource()
1311 vi_separate_dcc_process_and_reset_stats(ctx, rtex); in si_flush_resource()
1316 struct r600_texture *rtex) in si_decompress_dcc() argument
1318 if (!rtex->dcc_offset) in si_decompress_dcc()
1321 si_blit_decompress_color(ctx, rtex, 0, rtex->resource.b.b.last_level, in si_decompress_dcc()
1322 0, util_max_layer(&rtex->resource.b.b, 0), in si_decompress_dcc()