[Mesa-dev] [PATCH 2/2] radv: allow to force enable vsync with RADV_VSYNC=1
Samuel Pitoiset
samuel.pitoiset at gmail.com
Mon Apr 8 20:42:14 UTC 2019
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107391
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/amd/vulkan/radv_wsi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c
index 2fd07447668..7651043b2b2 100644
--- a/src/amd/vulkan/radv_wsi.c
+++ b/src/amd/vulkan/radv_wsi.c
@@ -38,11 +38,13 @@ radv_wsi_proc_addr(VkPhysicalDevice physicalDevice, const char *pName)
VkResult
radv_init_wsi(struct radv_physical_device *physical_device)
{
+ bool vsync = !!env_var_as_unsigned("RADV_VSYNC", 0);
+
return wsi_device_init(&physical_device->wsi_device,
radv_physical_device_to_handle(physical_device),
radv_wsi_proc_addr,
&physical_device->instance->alloc,
- physical_device->master_fd, false);
+ physical_device->master_fd, vsync);
}
void
--
2.21.0
More information about the mesa-dev
mailing list