[GPU] Better explanation for exact texture memory extent calculation [ci skip]

This commit is contained in:
Triang3l 2022-06-01 12:53:23 +03:00
parent d1ad10b98c
commit 8bd244f277
1 changed files with 5 additions and 4 deletions

View File

@ -439,10 +439,11 @@ TextureGuestLayout GetGuestTextureLayout(
if (level == layout.packed_level) { if (level == layout.packed_level) {
// Calculate the portion of the mip tail actually used by the needed // Calculate the portion of the mip tail actually used by the needed
// mips. The actually used region may be significantly smaller than the // mips. The actually used region may be significantly smaller than the
// full 32x32-texel-aligned tail. A 2x2 texture (for example, in Test // full 32x32-texel-aligned tail. A 2x2 texture (for example, in
// Drive Unlimited, there's a 2x2 k_8_8_8_8 linear texture with packed // 494707D4, there's a 2x2 k_8_8_8_8 linear texture with packed mips),
// mips), for instance, would have its 2x2 base at (16, 0) and its 1x1 // for instance, would have its 2x2 base at (16, 0) and its 1x1 mip at
// mip at (8, 0) - and we need 2 or 1 rows in these cases, not 32. // (8, 0) - and we need 2 or 1 rows in these cases, not 32 - the 32 rows
// would span two 4 KB pages rather than one.
level_layout.x_extent_blocks = 0; level_layout.x_extent_blocks = 0;
level_layout.y_extent_blocks = 0; level_layout.y_extent_blocks = 0;
level_layout.z_extent = 0; level_layout.z_extent = 0;