Lines Matching refs:dcc
151 return (!surf->u.gfx9.color.dcc.independent_64B_blocks && in ac_surface_supports_dcc_image_stores()
152 surf->u.gfx9.color.dcc.independent_128B_blocks && in ac_surface_supports_dcc_image_stores()
153 surf->u.gfx9.color.dcc.max_compressed_block_size == V_028C78_MAX_BLOCK_SIZE_128B) || in ac_surface_supports_dcc_image_stores()
155 surf->u.gfx9.color.dcc.independent_64B_blocks && in ac_surface_supports_dcc_image_stores()
156 surf->u.gfx9.color.dcc.independent_128B_blocks && in ac_surface_supports_dcc_image_stores()
157 surf->u.gfx9.color.dcc.max_compressed_block_size == V_028C78_MAX_BLOCK_SIZE_64B); in ac_surface_supports_dcc_image_stores()
186 surf->u.gfx9.color.dcc.independent_64B_blocks = AMD_FMT_MOD_GET(DCC_INDEPENDENT_64B, modifier); in ac_modifier_fill_dcc_params()
187 surf->u.gfx9.color.dcc.independent_128B_blocks = AMD_FMT_MOD_GET(DCC_INDEPENDENT_128B, modifier); in ac_modifier_fill_dcc_params()
188 …surf->u.gfx9.color.dcc.max_compressed_block_size = AMD_FMT_MOD_GET(DCC_MAX_COMPRESSED_BLOCK, modif… in ac_modifier_fill_dcc_params()
239 if (!options->dcc) in ac_is_modifier_supported()
1527 …return surf->u.gfx9.color.dcc.independent_64B_blocks && !surf->u.gfx9.color.dcc.independent_128B_b… in is_dcc_supported_by_L2()
1528 surf->u.gfx9.color.dcc.max_compressed_block_size == V_028C78_MAX_BLOCK_SIZE_64B; in is_dcc_supported_by_L2()
1533 …return !surf->u.gfx9.color.dcc.independent_64B_blocks && surf->u.gfx9.color.dcc.independent_128B_b… in is_dcc_supported_by_L2()
1534 surf->u.gfx9.color.dcc.max_compressed_block_size <= V_028C78_MAX_BLOCK_SIZE_128B; in is_dcc_supported_by_L2()
1537 bool valid_64b = surf->u.gfx9.color.dcc.independent_64B_blocks && in is_dcc_supported_by_L2()
1538 surf->u.gfx9.color.dcc.max_compressed_block_size == V_028C78_MAX_BLOCK_SIZE_64B; in is_dcc_supported_by_L2()
1539 bool valid_128b = surf->u.gfx9.color.dcc.independent_128B_blocks && in is_dcc_supported_by_L2()
1540 … surf->u.gfx9.color.dcc.max_compressed_block_size == V_028C78_MAX_BLOCK_SIZE_128B; in is_dcc_supported_by_L2()
1546 …return surf->u.gfx9.color.dcc.independent_64B_blocks != surf->u.gfx9.color.dcc.independent_128B_bl… in is_dcc_supported_by_L2()
1551 …return (surf->u.gfx9.color.dcc.independent_64B_blocks != surf->u.gfx9.color.dcc.independent_128B_b… in is_dcc_supported_by_L2()
1553 (surf->u.gfx9.color.dcc.independent_64B_blocks && in is_dcc_supported_by_L2()
1554 surf->u.gfx9.color.dcc.max_compressed_block_size == V_028C78_MAX_BLOCK_SIZE_64B); in is_dcc_supported_by_L2()
1617 assert(surf->u.gfx9.color.dcc.independent_64B_blocks && in is_dcc_supported_by_DCN()
1618 surf->u.gfx9.color.dcc.max_compressed_block_size == V_028C78_MAX_BLOCK_SIZE_64B); in is_dcc_supported_by_DCN()
1624 if (info->gfx_level == GFX10 && surf->u.gfx9.color.dcc.independent_128B_blocks) in is_dcc_supported_by_DCN()
1628 (surf->u.gfx9.color.dcc.independent_64B_blocks && in is_dcc_supported_by_DCN()
1629 surf->u.gfx9.color.dcc.max_compressed_block_size == V_028C78_MAX_BLOCK_SIZE_64B)); in is_dcc_supported_by_DCN()
1637 ADDR2_COMPUTE_DCCINFO_OUTPUT *dcc, in ac_copy_dcc_equation() argument
1640 equation->meta_block_width = dcc->metaBlkWidth; in ac_copy_dcc_equation()
1641 equation->meta_block_height = dcc->metaBlkHeight; in ac_copy_dcc_equation()
1642 equation->meta_block_depth = dcc->metaBlkDepth; in ac_copy_dcc_equation()
1647 assert(dcc->equation.gfx10_bits[i] == 0); in ac_copy_dcc_equation()
1650 assert(dcc->equation.gfx10_bits[i] == 0); in ac_copy_dcc_equation()
1652 memcpy(equation->u.gfx10_bits, dcc->equation.gfx10_bits + 4, in ac_copy_dcc_equation()
1655 assert(dcc->equation.gfx9.num_bits <= ARRAY_SIZE(equation->u.gfx9.bit)); in ac_copy_dcc_equation()
1657 equation->u.gfx9.num_bits = dcc->equation.gfx9.num_bits; in ac_copy_dcc_equation()
1658 equation->u.gfx9.num_pipe_bits = dcc->equation.gfx9.numPipeBits; in ac_copy_dcc_equation()
1661 equation->u.gfx9.bit[b].coord[c].dim = dcc->equation.gfx9.bit[b].coord[c].dim; in ac_copy_dcc_equation()
1662 equation->u.gfx9.bit[b].coord[c].ord = dcc->equation.gfx9.bit[b].coord[c].ord; in ac_copy_dcc_equation()
1926 surf->u.gfx9.color.dcc.rb_aligned = din.dccKeyFlags.rbAligned; in gfx9_compute_miptree()
1927 surf->u.gfx9.color.dcc.pipe_aligned = din.dccKeyFlags.pipeAligned; in gfx9_compute_miptree()
2001 assert(surf->u.gfx9.color.dcc.pipe_aligned || surf->u.gfx9.color.dcc.rb_aligned); in gfx9_compute_miptree()
2019 surf->u.gfx9.color.dcc.display_equation_valid = true; in gfx9_compute_miptree()
2238 surf->u.gfx9.color.dcc.independent_64B_blocks = 1; in gfx9_compute_surface()
2239 surf->u.gfx9.color.dcc.independent_128B_blocks = 0; in gfx9_compute_surface()
2240 surf->u.gfx9.color.dcc.max_compressed_block_size = V_028C78_MAX_BLOCK_SIZE_64B; in gfx9_compute_surface()
2242 surf->u.gfx9.color.dcc.independent_64B_blocks = 0; in gfx9_compute_surface()
2243 surf->u.gfx9.color.dcc.independent_128B_blocks = 1; in gfx9_compute_surface()
2244 surf->u.gfx9.color.dcc.max_compressed_block_size = V_028C78_MAX_BLOCK_SIZE_128B; in gfx9_compute_surface()
2269 surf->u.gfx9.color.dcc.independent_64B_blocks = 1; in gfx9_compute_surface()
2270 surf->u.gfx9.color.dcc.independent_128B_blocks = 0; in gfx9_compute_surface()
2271 surf->u.gfx9.color.dcc.max_compressed_block_size = V_028C78_MAX_BLOCK_SIZE_64B; in gfx9_compute_surface()
2281 surf->u.gfx9.color.dcc.independent_64B_blocks = 1; in gfx9_compute_surface()
2282 surf->u.gfx9.color.dcc.independent_128B_blocks = 1; in gfx9_compute_surface()
2283 surf->u.gfx9.color.dcc.max_compressed_block_size = V_028C78_MAX_BLOCK_SIZE_64B; in gfx9_compute_surface()
2380 (!is_dcc_supported_by_DCN(info, config, surf, surf->u.gfx9.color.dcc.rb_aligned, in gfx9_compute_surface()
2381 surf->u.gfx9.color.dcc.pipe_aligned) || in gfx9_compute_surface()
2383 … (info->use_display_dcc_with_retile_blit && !surf->u.gfx9.color.dcc.display_equation_valid))) in gfx9_compute_surface()
2397 assert(is_dcc_supported_by_DCN(info, config, surf, surf->u.gfx9.color.dcc.rb_aligned, in gfx9_compute_surface()
2398 surf->u.gfx9.color.dcc.pipe_aligned)); in gfx9_compute_surface()
2408 is_dcc_supported_by_DCN(info, config, surf, surf->u.gfx9.color.dcc.rb_aligned, in gfx9_compute_surface()
2409 surf->u.gfx9.color.dcc.pipe_aligned)) { in gfx9_compute_surface()
2537 surf->u.gfx9.color.dcc.display_equation_valid) { in ac_compute_surface()
2626 surf->u.gfx9.color.dcc.independent_64B_blocks = in ac_surface_set_bo_metadata()
2628 surf->u.gfx9.color.dcc.independent_128B_blocks = in ac_surface_set_bo_metadata()
2630 surf->u.gfx9.color.dcc.max_compressed_block_size = in ac_surface_set_bo_metadata()
2676 AMDGPU_TILING_SET(DCC_INDEPENDENT_64B, surf->u.gfx9.color.dcc.independent_64B_blocks); in ac_surface_get_bo_metadata()
2678 AMDGPU_TILING_SET(DCC_INDEPENDENT_128B, surf->u.gfx9.color.dcc.independent_128B_blocks); in ac_surface_get_bo_metadata()
2680 surf->u.gfx9.color.dcc.max_compressed_block_size); in ac_surface_get_bo_metadata()
2774 surf->u.gfx9.color.dcc.pipe_aligned = G_008F24_META_PIPE_ALIGNED(desc[5]); in ac_surface_set_umd_metadata()
2775 surf->u.gfx9.color.dcc.rb_aligned = G_008F24_META_RB_ALIGNED(desc[5]); in ac_surface_set_umd_metadata()
2778 if (!surf->u.gfx9.color.dcc.pipe_aligned && !surf->u.gfx9.color.dcc.rb_aligned) in ac_surface_set_umd_metadata()
2787 surf->u.gfx9.color.dcc.pipe_aligned = G_00A018_META_PIPE_ALIGNED(desc[6]); in ac_surface_set_umd_metadata()