amdgpu_dm_p...fx6_tile_idx(9)
π amdgpu_dm_plane_get_gfx6_tile_idx(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one's about picking a tile mode index on GFX6-8, and honestly it's giving very niche-but-iconic energy π
πΈ NAME πΈ
amdgpu_dm_plane_get_gfx6_tile_idx β Get tile mode index on GFX6-8 π¦
β¨ SYNOPSIS β¨
u32 amdgpu_dm_plane_get_gfx6_tile_idx (const struct amdgpu_device *adev
, const u32 bpp , const enum array_mode_values arr );
like, that's the whole signature, no cap π
π«Ά ARGUMENTS π«Ά
adevβ amdgpu_device pointer π (the device, the main character of the arg list fr)bppβ bits per pixel in the image πarrβ array mode (aka. tile mode) of the image layout π
π₯ DESCRIPTION π₯
So what it actually does: it selects which tiling mode from the table is suitable for the given bits per pixel using the given array mode β assuming the displayable micro tile mode is the one being used. periodt π
On GFX6-8, the GFX block can only use pre-programmed tiling modes from GB_TILE_MODEn registers, and those registers are programmed by the kernel according to the tiling mode table πβ¨
β οΈ Bestie, listen: the tiling table is uAPI and userspace relies on specific modes being present at specific indices. Do not go messing with the ordering, iykyk π
See SiLib::HwlSetupTileInfo and CiLib::HwlSetupTileInfo in addrlib π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.cπ¦ amdgpu_dm_plane_calc_gfx7_tile_split(9)βamdgpu_dm_plane_get_gfx7_macro_tile_idx(9)πΈamdgpu_dm_plane_calc_gfx6_mod(9)π§amdgpu_dm_plane_gfx6_format_mod_supported(9)π₯amdgpu_dm_plane_add_gfx6_modifiers(9)π
aaaand that's the page, bestie π«Ά this icon was brought to you by the source at ./drivers/gpu/drm/amd/display/..., dated October 2026, in the amdgpu_dm_p...fx6_tile_idx(9) era π go forth and tile responsibly β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms