Skip to content

radv: Fix 1D compressed mipmaps on GFX9.

Bas Nieuwenhuizen requested to merge bnieuwenhuizen/mesa:mipmap-fix2 into master

Partial rollback as GFX9 really requires height = 1 to work.

The two substantial parts of the fix remaining:

  1. Deal with views with multiple levels.
  2. Limit the expansion to the base mip pitch/height. On GFX9 this is exactly equal to the surf_pitch that was used before. I've done some investigation to make sure that on GFX10 this always results in the right physical layout.

Remaining stupid question is how the actual extents for bounds checking never end up too low when the size gets clamped, but this change and the previous change don't change that ...

Fixes: 1fb3e1fb "radv: Fix mipmap extent adjustment on GFX9+."

Merge request reports