freedreno/a6xx: FETCHSIZE is PITCHALIGN
"FETCHSIZE" is actually a "minimum pitch" or "pitchalign" value that's relevant for mipmaps. The 0 value means 64-bytes. Understanding this allows some simplifications and will make it possible to use less alignment on linear formats. Signed-off-by: Jonathan Marek <jonathan@marek.ca> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5013>
This commit is contained in:

committed by
Marge Bot

parent
6269405a2b
commit
3a9ab3b6e9
@@ -165,6 +165,9 @@ fdl6_layout(struct fdl_layout *layout,
|
||||
ta->ubwc_blockheight),
|
||||
ubwc_tile_height_alignment);
|
||||
|
||||
layout->pitchalign =
|
||||
util_logbase2_ceil(fdl6_pitchalign(layout, mip_levels - 1) * layout->cpp >> 6);
|
||||
|
||||
for (uint32_t level = 0; level < mip_levels; level++) {
|
||||
uint32_t depth = u_minify(depth0, level);
|
||||
struct fdl_slice *slice = &layout->slices[level];
|
||||
|
Reference in New Issue
Block a user