radv: fix creating BC image views when the base layer is > 0
When the base array layer of the image view is > 0, addrlib computes the offset (in HwlComputeSubResourceOffsetForSwizzlePattern) which is then added to the base VA in RADV. But if the driver doesn't reset the base array layer, the hw will compute incorrect addressing (ie. base array will be added twice). This also matches AMDVLK. This fixes a VM fault followed by a GPU hang on RDNA2 when trying to join a multiplayer game with medium settings in Halo Infinite. Fixes: 98ba1e0d ("radv: Fix mipmap views on GFX10+") Signed-off-by:Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <mesa/mesa!20761> (cherry picked from commit 8d191b2c)
Loading
Please register or sign in to comment