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 33f24b9d30222ec0c089b4c289a57f44d5cf3ac8..cc88abb57a897f7a6758761e2fe761495ddae9d5 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;
        }
 }