radv: add Doom workaround
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 15 Aug 2018 11:12:13 +0000 (21:12 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 15 Aug 2018 21:53:38 +0000 (07:53 +1000)
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c

index 33f24b9..cc88abb 100644 (file)
@@ -480,6 +480,9 @@ radv_handle_per_app_options(struct radv_instance *instance,
                         */
                        instance->perftest_flags |= RADV_PERFTEST_SISCHED;
                }
+       } else if (!strcmp(name, "DOOM_VFR")) {
+               /* Work around a Doom VFR game bug */
+               instance->debug_flags |= RADV_DEBUG_NO_DYNAMIC_BOUNDS;
        }
 }