Home
last modified time | relevance | path

Searched refs:afb (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_display.c726 static int convert_tiling_flags_to_modifier_gfx12(struct amdgpu_framebuffer *afb) in convert_tiling_flags_to_modifier_gfx12() argument
729 int swizzle_mode = AMDGPU_TILING_GET(afb->tiling_flags, GFX12_SWIZZLE_MODE); in convert_tiling_flags_to_modifier_gfx12()
735 AMDGPU_TILING_GET(afb->tiling_flags, GFX12_DCC_MAX_COMPRESSED_BLOCK); in convert_tiling_flags_to_modifier_gfx12()
741 AMD_FMT_MOD_SET(DCC, afb->gfx12_dcc) | in convert_tiling_flags_to_modifier_gfx12()
745 afb->base.modifier = modifier; in convert_tiling_flags_to_modifier_gfx12()
746 afb->base.flags |= DRM_MODE_FB_MODIFIERS; in convert_tiling_flags_to_modifier_gfx12()
750 static int convert_tiling_flags_to_modifier(struct amdgpu_framebuffer *afb) in convert_tiling_flags_to_modifier() argument
752 struct amdgpu_device *adev = drm_to_adev(afb->base.dev); in convert_tiling_flags_to_modifier()
760 if (!afb->tiling_flags || !AMDGPU_TILING_GET(afb->tiling_flags, SWIZZLE_MODE)) { in convert_tiling_flags_to_modifier()
763 int swizzle = AMDGPU_TILING_GET(afb->tiling_flags, SWIZZLE_MODE); in convert_tiling_flags_to_modifier()
[all …]
Damdgpu_vkms.c302 struct amdgpu_framebuffer *afb; in amdgpu_vkms_prepare_fb() local
313 afb = to_amdgpu_framebuffer(new_state->fb); in amdgpu_vkms_prepare_fb()
357 afb->address = amdgpu_bo_gpu_offset(rbo); in amdgpu_vkms_prepare_fb()
/linux-6.12.1/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_plane.c306 const struct amdgpu_framebuffer *afb, in amdgpu_dm_plane_fill_gfx9_plane_attributes_from_modifiers() argument
315 const uint64_t modifier = afb->base.modifier; in amdgpu_dm_plane_fill_gfx9_plane_attributes_from_modifiers()
322 uint64_t dcc_address = afb->address + afb->base.offsets[1]; in amdgpu_dm_plane_fill_gfx9_plane_attributes_from_modifiers()
327 dcc->meta_pitch = afb->base.pitches[1]; in amdgpu_dm_plane_fill_gfx9_plane_attributes_from_modifiers()
357 const struct amdgpu_framebuffer *afb, in amdgpu_dm_plane_fill_gfx12_plane_attributes_from_modifiers() argument
366 const uint64_t modifier = afb->base.modifier; in amdgpu_dm_plane_fill_gfx12_plane_attributes_from_modifiers()
834 const struct amdgpu_framebuffer *afb, in amdgpu_dm_plane_fill_plane_buffer_attributes() argument
845 const struct drm_framebuffer *fb = &afb->base; in amdgpu_dm_plane_fill_plane_buffer_attributes()
856 uint64_t addr = afb->address + fb->offsets[0]; in amdgpu_dm_plane_fill_plane_buffer_attributes()
869 uint64_t luma_addr = afb->address + fb->offsets[0]; in amdgpu_dm_plane_fill_plane_buffer_attributes()
[all …]
Damdgpu_dm_wb.c86 struct amdgpu_framebuffer *afb; in amdgpu_dm_wb_prepare_job() local
98 afb = to_amdgpu_framebuffer(job->fb); in amdgpu_dm_wb_prepare_job()
133 afb->address = amdgpu_bo_gpu_offset(rbo); in amdgpu_dm_wb_prepare_job()
Damdgpu_dm_plane.h46 const struct amdgpu_framebuffer *afb,
Damdgpu_dm.c5476 const struct amdgpu_framebuffer *afb = in fill_dc_plane_info_and_addr() local
5567 ret = amdgpu_dm_plane_fill_plane_buffer_attributes(adev, afb, plane_info->format, in fill_dc_plane_info_and_addr()
5589 struct amdgpu_framebuffer *afb = (struct amdgpu_framebuffer *)plane_state->fb; in fill_dc_plane_attributes() local
5606 afb->tiling_flags, in fill_dc_plane_attributes()
5609 afb->tmz_surface, in fill_dc_plane_attributes()
8811 struct amdgpu_framebuffer *afb = to_amdgpu_framebuffer(plane->state->fb); in amdgpu_dm_update_cursor() local
8812 struct drm_crtc *crtc = afb ? plane->state->crtc : old_plane_state->crtc; in amdgpu_dm_update_cursor()
8815 uint64_t address = afb ? afb->address : 0; in amdgpu_dm_update_cursor()
8860 if (afb) in amdgpu_dm_update_cursor()
8861 attributes.pitch = afb->base.pitches[0] / afb->base.format->cpp[0]; in amdgpu_dm_update_cursor()
[all …]