amdgpu_dm_p...cro_tile_idx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to the Kernel API Manual, bestie πŸ’– this page is all about a little function that picks a macro tiling mode index, and it’s giving very specific GPU vibes. No cap.

πŸ’– NAME πŸ’–

amdgpu_dm_plane_get_gfx7_macro_tile_idx β€” Get macro tile mode index on GFX7-8 ✨

✨ SYNOPSIS ✨

u32 amdgpu_dm_plane_get_gfx7_macro_tile_idx (const u32 bpp , const u32 tile_split_bytes );

πŸŽ€ ARGUMENTS πŸŽ€

  • bpp β€” bits per pixel in the image πŸ–ΌοΈ
  • tile_split_bytes β€” actual tile split bytes, see amdgpu_dm_plane_calc_gfx7_tile_split πŸ‘€

πŸ¦‹ DESCRIPTION πŸ¦‹

So what it does is select which macro tiling mode from the table is suitable for the given bits per pixel, assuming 2D_TILED_THIN1 array mode and DISPLAY micro tile mode (and no multisampling). Literally that’s the whole assignment. πŸ’…

Important vibe check: the tiling table is uAPI, and userspace relies on specific modes being present at specific indices. So don’t go rearranging it for fun, bestie 😭. See CiLib::HwlComputeMacroModeIndex in addrlib for the reference.

πŸ”₯ SEE ALSO πŸ”₯

and that’s the whole page β€” signing off from the ./drivers/gpu/drm/amd/display/... source/version, dated October 2026 πŸ’–πŸ«Ά

πŸ“¦ where this page comes from