GPU: optionally hide unknown GPUs (#1742)

The current default behavior of not hiding any GPUs is retained. The new
feature of hiding unknown or unrecognized GPUs can be enabled with
hide-type = "unknown".
This commit is contained in:
Samuli Thomasson
2025-05-07 16:06:47 +02:00
committed by GitHub
parent 5d3fb98072
commit 484e05eae3
4 changed files with 16 additions and 5 deletions
+2 -1
View File
@@ -1139,12 +1139,13 @@
},
{
"long": "gpu-hide-type",
"desc": "Specify which types of GPUs should not be displayed",
"desc": "Specify which types of GPUs should not be displayed (default: all GPUs are shown, regardless of recognition)",
"arg": {
"type": "enum",
"enum": {
"integrated": "Hide integrated GPUs",
"discrete": "Hide discrete GPUs",
"unknown": "Hide unknown (unrecognized) GPUs",
"none": "Do not hide any GPUs"
},
"default": "none"