/third_party/mesa3d/src/amd/compiler/ |
D | aco_opcodes.py | 385 for (gfx6, gfx7, gfx8, gfx9, gfx10, name, cls) in default_class(SOP2, InstrClass.Salu): 386 opcode(name, gfx7, gfx9, gfx10, Format.SOP2, cls) 421 for (gfx6, gfx7, gfx8, gfx9, gfx10, name, cls) in default_class(SOPK, InstrClass.Salu): 422 opcode(name, gfx7, gfx9, gfx10, Format.SOPK, cls) 499 for (gfx6, gfx7, gfx8, gfx9, gfx10, name, cls) in default_class(SOP1, InstrClass.Salu): 500 opcode(name, gfx7, gfx9, gfx10, Format.SOP1, cls) 527 for (gfx6, gfx7, gfx8, gfx9, gfx10, name) in SOPC: 528 opcode(name, gfx7, gfx9, gfx10, Format.SOPC, InstrClass.Salu) 574 for (gfx6, gfx7, gfx8, gfx9, gfx10, name, cls) in default_class(SOPP, InstrClass.Salu): 575 opcode(name, gfx7, gfx9, gfx10, Format.SOPP, cls) [all …]
|
/third_party/mesa3d/src/amd/common/ |
D | ac_surface.c | 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() 1527 …return surf->u.gfx9.color.dcc.independent_64B_blocks && !surf->u.gfx9.color.dcc.independent_128B_b… in is_dcc_supported_by_L2() [all …]
|
D | ac_surface_modifier_test.c | 78 din.swizzleMode = surf->u.gfx9.swizzle_mode; in get_addr_from_coord_base() 86 din.dccKeyFlags.pipeAligned = surf->u.gfx9.color.dcc.pipe_aligned; in get_addr_from_coord_base() 87 din.dccKeyFlags.rbAligned = surf->u.gfx9.color.dcc.rb_aligned; in get_addr_from_coord_base() 95 dcc_input.swizzleMode = surf->u.gfx9.swizzle_mode; in get_addr_from_coord_base() 128 _mesa_sha1_update(&ctx, &surf->u.gfx9.color.display_dcc_pitch_max, in generate_hash() 129 sizeof(surf->u.gfx9.color.display_dcc_pitch_max)); in generate_hash() 133 input.swizzleMode = surf->u.gfx9.swizzle_mode; in generate_hash() 142 input.pitchInElement = surf->u.gfx9.surf_pitch; in generate_hash() 148 surf->u.gfx9.color.dcc.rb_aligned, in generate_hash() 149 surf->u.gfx9.color.dcc.pipe_aligned); in generate_hash() [all …]
|
D | ac_surface_meta_address_test.c | 266 assert(dout.equation.gfx9.num_bits <= ARRAY_SIZE(eq.u.gfx9.bit)); in one_dcc_address_test() 288 … addr = gfx9_meta_addr_from_coord(info, &dout.equation.gfx9, dout.metaBlkWidth, dout.metaBlkHeight, in one_dcc_address_test() 294 … gfx9_meta_addr_from_coord(info, &dout.equation.gfx9, dout.metaBlkWidth, dout.metaBlkHeight, in one_dcc_address_test() 642 addr = gfx9_meta_addr_from_coord(info, &cout.equation.gfx9, in one_cmask_address_test()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_meta_dcc_retile.c | 61 nir_imm_ivec2(&b, surf->u.gfx9.color.dcc_block_width, surf->u.gfx9.color.dcc_block_height)); in build_dcc_retile_compute_shader() 64 &surf->u.gfx9.color.dcc_equation, src_dcc_pitch, in build_dcc_retile_compute_shader() 68 &b, &dev->physical_device->rad_info, surf->bpe, &surf->u.gfx9.color.display_dcc_equation, in build_dcc_retile_compute_shader() 171 &vk_pipeline_info, NULL, &device->meta_state.dcc_retile.pipeline[surf->u.gfx9.swizzle_mode]); in radv_device_init_meta_dcc_retile_state() 195 unsigned swizzle_mode = image->planes[0].surface.u.gfx9.swizzle_mode; in radv_retile_dcc() 231 .range = image->planes[0].surface.u.gfx9.color.display_dcc_size, in radv_retile_dcc() 262 unsigned dcc_width = DIV_ROUND_UP(width, image->planes[0].surface.u.gfx9.color.dcc_block_width); in radv_retile_dcc() 264 DIV_ROUND_UP(height, image->planes[0].surface.u.gfx9.color.dcc_block_height); in radv_retile_dcc() 267 image->planes[0].surface.u.gfx9.color.dcc_pitch_max + 1, in radv_retile_dcc() 268 image->planes[0].surface.u.gfx9.color.dcc_height, in radv_retile_dcc() [all …]
|
D | radv_sdma_copy_image.c | 79 uint64_t src_address = image->bindings[0].bo->va + image->planes[0].surface.u.gfx9.surf_offset; in radv_sdma_v4_v5_copy_image_to_buffer() 80 unsigned src_pitch = image->planes[0].surface.u.gfx9.surf_pitch; in radv_sdma_v4_v5_copy_image_to_buffer() 98 src_address += image->planes[0].surface.u.gfx9.offset[0]; in radv_sdma_v4_v5_copy_image_to_buffer() 150 util_logbase2(bpp) | image->planes[0].surface.u.gfx9.swizzle_mode << 3 | in radv_sdma_v4_v5_copy_image_to_buffer() 151 image->planes[0].surface.u.gfx9.resource_type << 9 | in radv_sdma_v4_v5_copy_image_to_buffer() 152 (is_v5 ? 0 /* tiled->buffer.b.b.last_level */ : image->planes[0].surface.u.gfx9.epitch) in radv_sdma_v4_v5_copy_image_to_buffer() 174 image->planes[0].surface.u.gfx9.color.dcc.max_compressed_block_size << 24 | in radv_sdma_v4_v5_copy_image_to_buffer() 176 image->planes[0].surface.u.gfx9.color.dcc.pipe_aligned << 31); in radv_sdma_v4_v5_copy_image_to_buffer()
|
D | radv_image.c | 114 return info->bo_metadata->u.gfx9.scanout; in radv_surface_has_scanout() 427 if (md->u.gfx9.swizzle_mode > 0) in radv_patch_surface_from_metadata() 432 surface->u.gfx9.swizzle_mode = md->u.gfx9.swizzle_mode; in radv_patch_surface_from_metadata() 781 va += plane->surface.u.gfx9.zs.stencil_offset; in si_set_mutable_tex_desc_fields() 783 va += plane->surface.u.gfx9.surf_offset; in si_set_mutable_tex_desc_fields() 819 state[3] |= S_00A00C_SW_MODE(plane->surface.u.gfx9.zs.stencil_swizzle_mode); in si_set_mutable_tex_desc_fields() 821 state[3] |= S_00A00C_SW_MODE(plane->surface.u.gfx9.swizzle_mode); in si_set_mutable_tex_desc_fields() 833 meta = plane->surface.u.gfx9.color.dcc; in si_set_mutable_tex_desc_fields() 848 state[3] |= S_008F1C_SW_MODE(plane->surface.u.gfx9.zs.stencil_swizzle_mode); in si_set_mutable_tex_desc_fields() 849 state[4] |= S_008F20_PITCH(plane->surface.u.gfx9.zs.stencil_epitch); in si_set_mutable_tex_desc_fields() [all …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_sdma_copy_image.c | 116 uint64_t dst_address = sdst->buffer.gpu_address + sdst->surface.u.gfx9.surf_offset; in si_sdma_v4_v5_copy_texture() 117 uint64_t src_address = ssrc->buffer.gpu_address + ssrc->surface.u.gfx9.surf_offset; in si_sdma_v4_v5_copy_texture() 118 unsigned dst_pitch = sdst->surface.u.gfx9.surf_pitch; in si_sdma_v4_v5_copy_texture() 119 unsigned src_pitch = ssrc->surface.u.gfx9.surf_pitch; in si_sdma_v4_v5_copy_texture() 135 src_address += ssrc->surface.u.gfx9.offset[0]; in si_sdma_v4_v5_copy_texture() 136 dst_address += sdst->surface.u.gfx9.offset[0]; in si_sdma_v4_v5_copy_texture() 159 unsigned linear_slice_pitch = ((uint64_t)linear->surface.u.gfx9.surf_slice_size) / bpp; in si_sdma_v4_v5_copy_texture() 167 linear_address += linear->surface.u.gfx9.offset[0]; in si_sdma_v4_v5_copy_texture() 189 tiled->surface.u.gfx9.swizzle_mode << 3 | in si_sdma_v4_v5_copy_texture() 190 tiled->surface.u.gfx9.resource_type << 9 | in si_sdma_v4_v5_copy_texture() [all …]
|
D | si_shaderlib_nir.c | 166 coord = nir_imul(&b, coord, nir_imm_ivec2(&b, surf->u.gfx9.color.dcc_block_width, in si_create_dcc_retile_cs() 167 surf->u.gfx9.color.dcc_block_height)); in si_create_dcc_retile_cs() 170 … ac_nir_dcc_addr_from_coord(&b, &sctx->screen->info, surf->bpe, &surf->u.gfx9.color.dcc_equation, in si_create_dcc_retile_cs() 178 …ac_nir_dcc_addr_from_coord(&b, &sctx->screen->info, surf->bpe, &surf->u.gfx9.color.display_dcc_equ… in si_create_dcc_retile_cs() 212 nir_channels(&b, nir_imm_ivec4(&b, tex->surface.u.gfx9.color.dcc_block_width, in gfx9_create_clear_dcc_msaa_cs() 213 tex->surface.u.gfx9.color.dcc_block_height, in gfx9_create_clear_dcc_msaa_cs() 214 … tex->surface.u.gfx9.color.dcc_block_depth, 0), 0x7)); in gfx9_create_clear_dcc_msaa_cs() 218 &tex->surface.u.gfx9.color.dcc_equation, in gfx9_create_clear_dcc_msaa_cs()
|
D | si_compute_blit.c | 596 ((struct si_texture*)images[i].resource)->surface.u.gfx9.color.dcc.pipe_aligned); in si_launch_grid_internal_images() 791 sctx->cs_user_data[1] = (tex->surface.u.gfx9.color.dcc_pitch_max + 1) | in si_retile_dcc() 792 (tex->surface.u.gfx9.color.dcc_height << 16); in si_retile_dcc() 793 sctx->cs_user_data[2] = (tex->surface.u.gfx9.color.display_dcc_pitch_max + 1) | in si_retile_dcc() 794 (tex->surface.u.gfx9.color.display_dcc_height << 16); in si_retile_dcc() 799 void **shader = &sctx->cs_dcc_retile[tex->surface.u.gfx9.swizzle_mode]; in si_retile_dcc() 804 unsigned width = DIV_ROUND_UP(tex->buffer.b.b.width0, tex->surface.u.gfx9.color.dcc_block_width); in si_retile_dcc() 805 …unsigned height = DIV_ROUND_UP(tex->buffer.b.b.height0, tex->surface.u.gfx9.color.dcc_block_height… in si_retile_dcc() 839 sctx->cs_user_data[0] = (tex->surface.u.gfx9.color.dcc_pitch_max + 1) | in gfx9_clear_dcc_msaa() 840 (tex->surface.u.gfx9.color.dcc_height << 16); in gfx9_clear_dcc_msaa() [all …]
|
D | si_clear.c | 440 dcc_offset += tex->surface.u.gfx9.meta_levels[level].offset; in vi_dcc_get_clear_info() 441 clear_size = tex->surface.u.gfx9.meta_levels[level].size; in vi_dcc_get_clear_info() 507 assert(tex->surface.u.gfx9.swizzle_mode >= 4); in si_set_optimal_micro_tile_mode() 517 assert(tex->surface.u.gfx9.swizzle_mode % 4 != 0); in si_set_optimal_micro_tile_mode() 521 tex->surface.u.gfx9.swizzle_mode &= ~0x3; in si_set_optimal_micro_tile_mode() 522 tex->surface.u.gfx9.swizzle_mode += 2; /* D */ in si_set_optimal_micro_tile_mode() 525 tex->surface.u.gfx9.swizzle_mode &= ~0x3; in si_set_optimal_micro_tile_mode() 526 tex->surface.u.gfx9.swizzle_mode += 1; /* S */ in si_set_optimal_micro_tile_mode() 529 tex->surface.u.gfx9.swizzle_mode &= ~0x3; in si_set_optimal_micro_tile_mode() 530 tex->surface.u.gfx9.swizzle_mode += 3; /* R */ in si_set_optimal_micro_tile_mode() [all …]
|
D | radeon_vce_52.c | 198 RVCE_CS(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe); // encRefPicLumaPitch in create() 199 RVCE_CS(enc->chroma->u.gfx9.surf_pitch * enc->chroma->bpe); // encRefPicChromaPitch in create() 200 RVCE_CS(align(enc->luma->u.gfx9.surf_height, 16) / 8); // encRefYHeightInQw in create() 274 enc->luma->u.gfx9.surf_offset); // inputPictureLumaAddressHi/Lo in encode() 276 enc->chroma->u.gfx9.surf_offset); // inputPictureChromaAddressHi/Lo in encode() 277 RVCE_CS(align(enc->luma->u.gfx9.surf_height, 16)); // encInputFrameYPitch in encode() 278 RVCE_CS(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe); // encInputPicLumaPitch in encode() 279 RVCE_CS(enc->chroma->u.gfx9.surf_pitch * enc->chroma->bpe); // encInputPicChromaPitch in encode()
|
D | radeon_vce.c | 226 pitch = align(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe, 256); in si_vce_frame_offset() 227 vpitch = align(enc->luma->u.gfx9.surf_height, 16); in si_vce_frame_offset() 458 align(tmp_surf->u.gfx9.surf_pitch * tmp_surf->bpe, 256) * in si_vce_create_encoder() 459 align(tmp_surf->u.gfx9.surf_height, 32); in si_vce_create_encoder()
|
D | si_state.c | 2178 tex->surface.u.gfx9.resource_type == RADEON_RESOURCE_2D) { in si_tex_dim() 2631 … S_028C78_MAX_COMPRESSED_BLOCK_SIZE(tex->surface.u.gfx9.color.dcc.max_compressed_block_size) | in si_initialize_color_surface() 2633 … S_028C78_INDEPENDENT_64B_BLOCKS(tex->surface.u.gfx9.color.dcc.independent_64B_blocks); in si_initialize_color_surface() 2635 …surf->cb_dcc_control |= S_028C78_INDEPENDENT_128B_BLOCKS_GFX11(tex->surface.u.gfx9.color.dcc.indep… in si_initialize_color_surface() 2637 …surf->cb_dcc_control |= S_028C78_INDEPENDENT_128B_BLOCKS_GFX10(tex->surface.u.gfx9.color.dcc.indep… in si_initialize_color_surface() 2670 S_028EE0_RESOURCE_TYPE(tex->surface.u.gfx9.resource_type) | in si_initialize_color_surface() 2675 S_028C74_RESOURCE_TYPE(tex->surface.u.gfx9.resource_type); in si_initialize_color_surface() 2719 assert(tex->surface.u.gfx9.surf_offset == 0); in si_init_depth_surface() 2721 … surf->db_stencil_base = (tex->buffer.gpu_address + tex->surface.u.gfx9.zs.stencil_offset) >> 8; in si_init_depth_surface() 2724 S_028038_SW_MODE(tex->surface.u.gfx9.swizzle_mode) | in si_init_depth_surface() [all …]
|
/third_party/mesa3d/docs/relnotes/ |
D | 17.3.3.rst | 58 - Revert "radv/gfx9: fix block compression texture views." 69 - radv/gfx9: fix 3d image to image transfers on compute queues. 70 - radv/gfx9: fix 3d image clears on compute queues 71 - radv/gfx9: fix buffer to image for 3d images on compute queues 72 - radv/gfx9: fix block compression texture views. 73 - radv/gfx9: use a bigger hammer to flush cb/db caches. 74 - radv/gfx9: use correct swizzle parameter to work out border swizzle.
|
D | 17.2.1.rst | 67 - radv: disable 1d/2d linear optimisation on gfx9. 68 - radv/gfx9: set descriptor up for base_mip to level range. 71 - radv/gfx9: allocate events from uncached VA space 75 - radv/gfx9: set mip0-depth correctly for 2d arrays/3d images 77 - radv/gfx9: fix image resource handling. 84 - cherry-ignore: ignore gfx9 tile swizzle fix 128 - radeonsi/gfx9: always flush DB metadata on framebuffer changes
|
D | 17.3.2.rst | 50 - radv/gfx9: add support for 3d images to blit 2d paths 54 - radv/gfx9: add 3d sampler image->buffer copy shader. (v3) 73 - radv/gfx9: fix primitive topology when adjacency is used
|
D | 17.1.10.rst | 52 - cherry-ignore: add "radv: gfx9 fixes" 53 - cherry-ignore: add "radv/gfx9: set mip0-depth correctly for 2d 55 - cherry-ignore: add "radv/gfx9: fix image resource handling." 100 - cherry-ignore: add "ac/surface: handle S8 on gfx9"
|
D | 17.1.6.rst | 94 - cherry-ignore: add a couple of radeonsi/gfx9 commits 164 - radeonsi/gfx9: fix crash building monolithic merged ES-GS shader 166 - radeonsi/gfx9: reduce max threads per block to 1024 on gfx9+
|
D | 17.2.5.rst | 91 - radeon/video: add gfx9 offsets when rejoin the video surface 97 - ac/surface/gfx9: don't allow DCC for the smallest mipmap levels 109 - amd/common/gfx9: workaround DCC corruption more conservatively
|
D | 17.2.2.rst | 58 - ac/surface: handle S8 on gfx9 63 - radv: add gfx9 scissor workaround 104 - cherry-ignore: add "radeonsi/gfx9: proper workaround for LS/HS VGPR
|
D | 22.0.3.rst | 50 …ruct gfx9_meta_equation \*): assertion "dcc->equation.gfx9.num_bits <= ARRAY_SIZE(equation->u.gfx9… 145 - ac/surface: fix an addrlib race condition on gfx9 176 - ac/surface: adjust gfx9.pitch[*] based on surf->blk_w
|
D | 17.1.9.rst | 48 - cherry-ignore: add "radeonsi/gfx9: always flush DB metadata on 52 - cherry-ignore: add "radeonsi/gfx9: proper workaround for LS/HS VGPR
|
/third_party/mesa3d/src/amd/addrlib/ |
D | meson.build | 38 'src/gfx9/gfx9addrlib.cpp', 39 'src/gfx9/gfx9addrlib.h', 49 'src/chip/gfx9/gfx9_gb_reg.h', 79 'inc', 'src', 'src/core', 'src/chip/gfx9', 'src/chip/r800',
|
/third_party/mesa3d/src/amd/vulkan/winsys/amdgpu/ |
D | radv_amdgpu_bo.c | 893 tiling_flags |= AMDGPU_TILING_SET(SWIZZLE_MODE, md->u.gfx9.swizzle_mode); in radv_amdgpu_winsys_bo_set_metadata() 894 tiling_flags |= AMDGPU_TILING_SET(DCC_OFFSET_256B, md->u.gfx9.dcc_offset_256b); in radv_amdgpu_winsys_bo_set_metadata() 895 tiling_flags |= AMDGPU_TILING_SET(DCC_PITCH_MAX, md->u.gfx9.dcc_pitch_max); in radv_amdgpu_winsys_bo_set_metadata() 896 tiling_flags |= AMDGPU_TILING_SET(DCC_INDEPENDENT_64B, md->u.gfx9.dcc_independent_64b_blocks); in radv_amdgpu_winsys_bo_set_metadata() 898 AMDGPU_TILING_SET(DCC_INDEPENDENT_128B, md->u.gfx9.dcc_independent_128b_blocks); in radv_amdgpu_winsys_bo_set_metadata() 900 AMDGPU_TILING_SET(DCC_MAX_COMPRESSED_BLOCK_SIZE, md->u.gfx9.dcc_max_compressed_block_size); in radv_amdgpu_winsys_bo_set_metadata() 901 tiling_flags |= AMDGPU_TILING_SET(SCANOUT, md->u.gfx9.scanout); in radv_amdgpu_winsys_bo_set_metadata() 947 md->u.gfx9.swizzle_mode = AMDGPU_TILING_GET(tiling_flags, SWIZZLE_MODE); in radv_amdgpu_winsys_bo_get_metadata() 948 md->u.gfx9.scanout = AMDGPU_TILING_GET(tiling_flags, SCANOUT); in radv_amdgpu_winsys_bo_get_metadata()
|