diff options
author | Simon Ser <contact@emersion.fr> | 2023-12-12 15:25:10 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2023-12-12 10:04:14 -0500 |
commit | ff07eab85b5c6b728ad3cc99d02e9f2ae8b9854f (patch) | |
tree | fc4aa760eafe3a14c37fd11d8743c3b54e31de9c /include | |
parent | Drop fglrx detection (diff) | |
download | sway-ff07eab85b5c6b728ad3cc99d02e9f2ae8b9854f.tar.gz sway-ff07eab85b5c6b728ad3cc99d02e9f2ae8b9854f.tar.zst sway-ff07eab85b5c6b728ad3cc99d02e9f2ae8b9854f.zip |
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).
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/server.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 { | |||
163 | 163 | ||
164 | extern struct sway_debug debug; | 164 | extern struct sway_debug debug; |
165 | 165 | ||
166 | extern bool allow_unsupported_gpu; | ||
167 | |||
166 | bool server_init(struct sway_server *server); | 168 | bool server_init(struct sway_server *server); |
167 | void server_fini(struct sway_server *server); | 169 | void server_fini(struct sway_server *server); |
168 | bool server_start(struct sway_server *server); | 170 | bool server_start(struct sway_server *server); |