From 2af0682074724c0b7c11961ab5fddf41d0d0426d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 1 May 2024 14:10:03 -0400 Subject: [PATCH] vulkan: Disable the uber shader There are too many systems where compiling the uber shader takes multiple seconds, or even minutes. So disabled it for now. --- gsk/gpu/gskvulkanrenderer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gsk/gpu/gskvulkanrenderer.c b/gsk/gpu/gskvulkanrenderer.c index 544902220e..e146f8bd9e 100644 --- a/gsk/gpu/gskvulkanrenderer.c +++ b/gsk/gpu/gskvulkanrenderer.c @@ -110,6 +110,11 @@ gsk_vulkan_renderer_create_context (GskGpuRenderer *renderer, !gdk_display_has_vulkan_feature (display, GDK_VULKAN_FEATURE_NONUNIFORM_INDEXING)) *supported &= ~GSK_GPU_OPTIMIZE_UBER; + /* Sadly, there are too many systems out there where compiling the uber shader + * takes multiple seconds, or even minutes. So just disabled it for now. + */ + *supported &= ~GSK_GPU_OPTIMIZE_UBER; + return GDK_DRAW_CONTEXT (context); }