radv: enable FMASK for color attachments only

Graphics / Mesa 3D Graphics Library / Mesa - Samuel Pitoiset [gmail.com] - 28 April 2020 15:23 EDT

The reason behind this is that FMASK requires CMASK and also that FMASK for non color attachments looks unnecessary. It's currently much easier to add this simple check because the driver tries to always enable DCC first and if we enable FMASK only if CMASK, we might loose some FMASK compressions.

This helps fixing some new robustness2 tests which fails because only FMASK is enabled.

523e9603d3f radv: enable FMASK for color attachments only
src/amd/vulkan/radv_image.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share