Skip to content
Snippets Groups Projects
Commit 98ba1e0d authored by John Brooks's avatar John Brooks Committed by Marge Bot
Browse files

radv: Fix mipmap views on GFX10+


As explained in the previous commit, GFX9+ has issues with addressing
mipmaps in block-compressed images. In the case of copy commands, we fix
this by doing an extra copy for the missing blocks.

For GFX10, the mipmap layout in memory allows us to do better than that. We
can change the base level of the descriptor to one level bigger than the
requested level and adjust the extent and address to match. This is done by
ComputeNonBlockCompressedView in addrlib. Thus on GFX10 we can skip the
fixup copy workaround, and this will also fix cases outside of explicit
copy commands.

Signed-off-by: default avatarJohn Brooks <john@fastquake.com>
Reviewed-by: default avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Acked-by: default avatarAcked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <mesa/mesa!17970>
parent 35f053ba
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment