Please ignore this fix too, the GPU hang is actually unrelated to DCC.
On 3/6/19 7:39 PM, Samuel Pitoiset wrote:
The game apparently hangs inside a copy image operation, but only when DCC is enabled. I haven't figured out the root cause yet, but this workaround fixes the problem and allows people to play that title, at least. Cc: 18.3 19.0 <mesa-sta...@lists.freedesktop.org> Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> --- src/amd/vulkan/radv_device.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index fc04de21025..bb76885d986 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -510,6 +510,12 @@ radv_handle_per_app_options(struct radv_instance *instance, } else if (!strcmp(name, "DOOM_VFR")) { /* Work around a Doom VFR game bug */ instance->debug_flags |= RADV_DEBUG_NO_DYNAMIC_BOUNDS; + } else if (!strcmp(name, "X4")) { + /* FIXME: X4 Foundations hangs the GPU on GFX9. It seems to + * work on GFX8, but I think it's safer to disable DCC + * everywhere for now. + */ + instance->debug_flags |= RADV_DEBUG_NO_DCC; } }
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev