From ff07eab85b5c6b728ad3cc99d02e9f2ae8b9854f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 12 Dec 2023 15:25:10 +0100 Subject: Detect Nvidia proprietary driver via drmGetVersion() This is less punishing for users with the Nvidia driver loaded but not used by Sway (e.g. for CUDA). --- include/sway/server.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/sway/server.h b/include/sway/server.h index 1b3166ce..bf195706 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -163,6 +163,8 @@ struct sway_debug { extern struct sway_debug debug; +extern bool allow_unsupported_gpu; + bool server_init(struct sway_server *server); void server_fini(struct sway_server *server); bool server_start(struct sway_server *server); -- cgit v1.2.3