radv: Work around non-renderable 128bpp compressed 3d textures on GFX9.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 17 Dec 2018 08:59:49 +0000 (09:59 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 20 Dec 2018 14:07:20 +0000 (15:07 +0100)
commit9f0bfbed11f5fc4f3b899b1eb90570dbeeef45c0
tree6c85668145a1e1e3d21d9db763ce18aaa7fa9e88
parent5c7935f8fc7dc0fd6e2495da36f66c51f966e489
radv: Work around non-renderable 128bpp compressed 3d textures on GFX9.

Exactly what title says, the new addrlib does not allow the above with
certain dimensions that the CTS seems to hit. Work around it by not
allowing the app to render to it via compat with  other 128bpp formats
and do not render to it ourselves during copies.

Fixes: 776b9113656 "amd/addrlib: update Mesa's copy of addrlib"
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_surface.c
src/amd/common/ac_surface.h
src/amd/vulkan/radv_formats.c
src/amd/vulkan/radv_image.c
src/amd/vulkan/radv_meta_copy.c