amdgpu_dm_p...cro_tile_idx(9)
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, seeamdgpu_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 π₯
- Kernel file
./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c amdgpu_dm_plane_get_gfx6_tile_idx(9)amdgpu_dm_plane_calc_gfx7_tile_split(9)amdgpu_dm_plane_calc_gfx6_mod(9)amdgpu_dm_plane_gfx6_format_mod_supported(9)amdgpu_dm_plane_add_gfx6_modifiers(9)
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
- 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