radv: allow applications to dynamically change RADV_FORCE_VRS
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Jan 2022 16:05:17 +0000 (17:05 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 16 Feb 2022 07:11:29 +0000 (08:11 +0100)
commitc50557d9612a975fd8983438a80ea7a1208698fa
tree125bfe364879ffb62d07e8b50fac286e61b1693a
parent5e2d9202e2882c7a293a90014cd83d05de7f1a79
radv: allow applications to dynamically change RADV_FORCE_VRS

This introduces inotify support in RADV to handle changes from the
RADV_FORCE_VRS_CONFIG_FILE. This is similar to MangoHUD. I'm personally
not sure it's the best solution but let's try this way and change it
later if we have issues (or if we have a lightweight solution).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14713>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h