amdgpu_dm_p...fx6_tile_idx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’–


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