Merge remote-tracking branch 'upstream/master' into local/yoda-main
# Conflicts: # Cargo.lock
This commit is contained in:
commit
b3a241dfe8
2 changed files with 46 additions and 95 deletions
|
|
@ -299,7 +299,7 @@ impl<W: AsyncWrite + Unpin> App<W> {
|
|||
|
||||
if let Some(gpus) = self.gpus.as_ref() {
|
||||
let default_idx = if entry.prefers_non_default_gpu() {
|
||||
gpus.iter().position(|gpu| !gpu.default).unwrap_or(0)
|
||||
gpus.iter().position(|gpu| gpu.discrete).unwrap_or(0)
|
||||
} else {
|
||||
gpus.iter().position(|gpu| gpu.default).unwrap_or(0)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue