mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
refactor(vulkan): use slice::contains for st_rdv comparison
This commit is contained in:
1 parent
6dafe9c8fc
commit
6f65d3db2a
1 file changed
+1
-1
@@ -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