Skip to content

anv: Add workaround for unsuccessful aux surface

In the game Steel Rats we can find misrendering issue that is caused by creating unsuccessful aux surface. If we return VK_SUCCESS from the function add_aux_surface_if_supported in anv_image.c, then the process of creating VkImage stops and bug is fixed.

Updated: After longer investigation workaround was changed and placed in add_all_surfaces_implicit_layout function with purpose to skip process of creation auxiliary surface. I have come to this decision because after looking over all functions that surface creation goes through nothing that can make bad changes to it and cause misrendering was not found. Also debugging flags that fix problem(those are nofc and norbc) just stop process of creating surface so the same does workaround but at earlier stage so in that way fix will be more optimized.

Closes: #5807

Signed-off-by: Viktoriia Palianytsia v.palianytsia@globallogic.com

Edited by Viktoriia Palianytsia

Merge request reports