mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
refactor(vulkan): use slice::contains for st_rdv comparison
This commit is contained in:
committed by
Connor Fitzgerald
parent
6dafe9c8fc
commit
6f65d3db2a
@@ -73,7 +73,7 @@ impl super::Instance {
|
||||
let render_devid =
|
||||
libc::makedev(drm_props.render_major as _, drm_props.render_minor as _);
|
||||
|
||||
if primary_devid == drm_stat.st_rdev || render_devid == drm_stat.st_rdev {
|
||||
if [primary_devid, render_devid].contains(&drm_stat.st_rdev) {
|
||||
physical_device = Some(device)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user