Searched refs:afb (Results 1 – 5 of 5) sorted by relevance
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_display.c | 721 static int convert_tiling_flags_to_modifier(struct amdgpu_framebuffer *afb) in convert_tiling_flags_to_modifier() argument 723 struct amdgpu_device *adev = drm_to_adev(afb->base.dev); in convert_tiling_flags_to_modifier() 731 if (!afb->tiling_flags || !AMDGPU_TILING_GET(afb->tiling_flags, SWIZZLE_MODE)) { in convert_tiling_flags_to_modifier() 734 int swizzle = AMDGPU_TILING_GET(afb->tiling_flags, SWIZZLE_MODE); in convert_tiling_flags_to_modifier() 743 uint32_t dcc_offset = AMDGPU_TILING_GET(afb->tiling_flags, DCC_OFFSET_256B); in convert_tiling_flags_to_modifier() 786 if (!has_xor && afb->base.format->cpp[0] != 4) in convert_tiling_flags_to_modifier() 825 AMD_FMT_MOD_SET(TILE, AMDGPU_TILING_GET(afb->tiling_flags, SWIZZLE_MODE)) | in convert_tiling_flags_to_modifier() 832 bool dcc_i64b = AMDGPU_TILING_GET(afb->tiling_flags, DCC_INDEPENDENT_64B) != 0; in convert_tiling_flags_to_modifier() 853 afb->base.offsets[1] = dcc_offset * 256 + afb->base.offsets[0]; in convert_tiling_flags_to_modifier() 854 afb->base.pitches[1] = in convert_tiling_flags_to_modifier() [all …]
|
D | amdgpu_vkms.c | 304 struct amdgpu_framebuffer *afb; in amdgpu_vkms_prepare_fb() local 315 afb = to_amdgpu_framebuffer(new_state->fb); in amdgpu_vkms_prepare_fb() 352 afb->address = amdgpu_bo_gpu_offset(rbo); in amdgpu_vkms_prepare_fb()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_plane.c | 307 const struct amdgpu_framebuffer *afb, in fill_gfx9_plane_attributes_from_modifiers() argument 316 const uint64_t modifier = afb->base.modifier; in fill_gfx9_plane_attributes_from_modifiers() 323 uint64_t dcc_address = afb->address + afb->base.offsets[1]; in fill_gfx9_plane_attributes_from_modifiers() 328 dcc->meta_pitch = afb->base.pitches[1]; in fill_gfx9_plane_attributes_from_modifiers() 754 const struct amdgpu_framebuffer *afb, in amdgpu_dm_plane_fill_plane_buffer_attributes() argument 765 const struct drm_framebuffer *fb = &afb->base; in amdgpu_dm_plane_fill_plane_buffer_attributes() 776 uint64_t addr = afb->address + fb->offsets[0]; in amdgpu_dm_plane_fill_plane_buffer_attributes() 789 uint64_t luma_addr = afb->address + fb->offsets[0]; in amdgpu_dm_plane_fill_plane_buffer_attributes() 790 uint64_t chroma_addr = afb->address + fb->offsets[1]; in amdgpu_dm_plane_fill_plane_buffer_attributes() 820 ret = fill_gfx9_plane_attributes_from_modifiers(adev, afb, format, in amdgpu_dm_plane_fill_plane_buffer_attributes() [all …]
|
D | amdgpu_dm_plane.h | 43 const struct amdgpu_framebuffer *afb,
|
D | amdgpu_dm.c | 4920 const struct amdgpu_framebuffer *afb = in fill_dc_plane_info_and_addr() local 5011 ret = amdgpu_dm_plane_fill_plane_buffer_attributes(adev, afb, plane_info->format, in fill_dc_plane_info_and_addr() 5033 struct amdgpu_framebuffer *afb = (struct amdgpu_framebuffer *)plane_state->fb; in fill_dc_plane_attributes() local 5050 afb->tiling_flags, in fill_dc_plane_attributes() 5053 afb->tmz_surface, in fill_dc_plane_attributes() 8080 struct amdgpu_framebuffer *afb = (struct amdgpu_framebuffer *)fb; in amdgpu_dm_commit_planes() local 8129 afb->tiling_flags, in amdgpu_dm_commit_planes() 8132 afb->tmz_surface, false); in amdgpu_dm_commit_planes() 9637 struct amdgpu_framebuffer *afb = to_amdgpu_framebuffer(fb); in dm_check_cursor_fb() local 9679 linear = AMDGPU_TILING_GET(afb->tiling_flags, ARRAY_MODE) != DC_ARRAY_2D_TILED_THIN1 && in dm_check_cursor_fb() [all …]
|