Finished dev [unoptimized + debuginfo] target(s) in 0.05s Running `target/debug/optimus-test` [2024-01-11T20:23:35Z INFO winit::platform_impl::platform::x11::window] Guessed window scale factor: 1 [2024-01-11T20:23:35Z DEBUG winit::platform_impl::platform::x11::window] Calculated physical dimensions: 800x600 [2024-01-11T20:23:35Z DEBUG winit::platform_impl::platform::x11::ime] failed to create IME context without preedit support. [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] Instance version: 0x403112 [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] Enabling debug utils [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] Enabling device properties2 [2024-01-11T20:23:35Z DEBUG wgpu_core::instance] Instance::new: created Vulkan backend [2024-01-11T20:23:35Z DEBUG wgpu_hal::gles::egl] Client extensions: [ "EGL_EXT_platform_base", "EGL_EXT_device_base", "EGL_EXT_device_enumeration", "EGL_EXT_device_query", "EGL_KHR_client_get_all_proc_addresses", "EGL_EXT_client_extensions", "EGL_KHR_debug", "EGL_KHR_platform_x11", "EGL_EXT_platform_x11", "EGL_EXT_platform_device", "EGL_MESA_platform_surfaceless", "EGL_EXT_explicit_device", "EGL_KHR_platform_wayland", "EGL_EXT_platform_wayland", "EGL_KHR_platform_gbm", "EGL_MESA_platform_gbm", "EGL_EXT_platform_xcb", ] [2024-01-11T20:23:35Z INFO wgpu_hal::gles::egl] Loading Wayland library to get the current display [2024-01-11T20:23:35Z INFO wgpu_hal::gles::egl] Loading X11 library to get the current display [2024-01-11T20:23:35Z INFO wgpu_hal::gles::egl] Using X11 platform [2024-01-11T20:23:35Z INFO wgpu_hal::gles::egl] Enabling EGL debug output [2024-01-11T20:23:35Z INFO wgpu_hal::gles::egl] Display vendor "Mesa Project", version (1, 5) [2024-01-11T20:23:35Z DEBUG wgpu_hal::gles::egl] Display extensions: [ "EGL_ANDROID_blob_cache", "EGL_ANDROID_native_fence_sync", "EGL_CHROMIUM_sync_control", "EGL_ANGLE_sync_control_rate", "EGL_EXT_buffer_age", "EGL_EXT_create_context_robustness", "EGL_EXT_image_dma_buf_import", "EGL_EXT_image_dma_buf_import_modifiers", "EGL_EXT_protected_content", "EGL_EXT_swap_buffers_with_damage", "EGL_IMG_context_priority", "EGL_KHR_cl_event2", "EGL_KHR_config_attribs", "EGL_KHR_context_flush_control", "EGL_KHR_create_context", "EGL_KHR_create_context_no_error", "EGL_KHR_fence_sync", "EGL_KHR_get_all_proc_addresses", "EGL_KHR_gl_colorspace", "EGL_KHR_gl_renderbuffer_image", "EGL_KHR_gl_texture_2D_image", "EGL_KHR_gl_texture_3D_image", "EGL_KHR_gl_texture_cubemap_image", "EGL_KHR_image", "EGL_KHR_image_base", "EGL_KHR_image_pixmap", "EGL_KHR_no_config_context", "EGL_KHR_reusable_sync", "EGL_KHR_surfaceless_context", "EGL_KHR_swap_buffers_with_damage", "EGL_EXT_pixel_format_float", "EGL_KHR_wait_sync", "EGL_MESA_configless_context", "EGL_MESA_drm_image", "EGL_MESA_image_dma_buf_export", "EGL_MESA_query_driver", "EGL_NOK_texture_from_pixmap", "EGL_WL_bind_wayland_display", ] [2024-01-11T20:23:35Z INFO wgpu_hal::gles::egl] EGL surface: +srgb [2024-01-11T20:23:35Z INFO wgpu_hal::gles::egl] Trying native-render [2024-01-11T20:23:35Z INFO wgpu_hal::gles::egl] EGL context: +debug [2024-01-11T20:23:35Z INFO wgpu_hal::gles::egl] EGL context: +robust access EXT [2024-01-11T20:23:35Z INFO wgpu_hal::gles::egl] EGL context: +surfaceless [2024-01-11T20:23:35Z DEBUG wgpu_core::instance] Instance::new: created Gl backend [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] linux_read_sorted_physical_devices: [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] Original order: [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] [0] Intel(R) Graphics (RPL-P) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] [1] NVIDIA GeForce RTX 4060 Laptop GPU [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] Sorted order: [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] [0] NVIDIA GeForce RTX 4060 Laptop GPU [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] [1] Intel(R) Graphics (RPL-P) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z DEBUG wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] Copying old device 0 into new device 0 [2024-01-11T20:23:35Z DEBUG wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z DEBUG wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] Copying old device 1 into new device 1 [2024-01-11T20:23:35Z DEBUG wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] linux_read_sorted_physical_devices: [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] Original order: [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] [0] Intel(R) Graphics (RPL-P) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] [1] NVIDIA GeForce RTX 4060 Laptop GPU [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] Sorted order: [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] [0] NVIDIA GeForce RTX 4060 Laptop GPU [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] [1] Intel(R) Graphics (RPL-P) [2024-01-11T20:23:35Z INFO wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z DEBUG wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] Copying old device 0 into new device 0 [2024-01-11T20:23:35Z DEBUG wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z DEBUG wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)] Copying old device 1 into new device 1 [2024-01-11T20:23:35Z DEBUG wgpu_hal::vulkan::instance] objects: (type: INSTANCE, hndl: 0x55d78c722450, name: ?) [2024-01-11T20:23:35Z WARN wgpu_hal::vulkan::instance] Disabling presentation on 'Intel(R) Graphics (RPL-P)' (id 0x55d78e27cc80) due to NV Optimus and Intel Mesa < v21.2 [2024-01-11T20:23:35Z INFO wgpu_core::instance] Adapter Vulkan AdapterInfo { name: "NVIDIA GeForce RTX 4060 Laptop GPU", vendor: 4318, device: 10400, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "545.29.06", backend: Vulkan } [2024-01-11T20:23:35Z INFO wgpu_core::instance] Adapter Vulkan AdapterInfo { name: "Intel(R) Graphics (RPL-P)", vendor: 32902, device: 42912, device_type: IntegratedGpu, driver: "Intel open-source Mesa driver", driver_info: "Mesa 23.1.9-manjaro1.1", backend: Vulkan } The application panicked (crashed). Message: failed to find adapter Location: src/main.rs:25 Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⋮ 8 frames hidden ⋮ 9: core::panicking::panic_display::hd10cbfc2d262f172 at /rustc/e51e98dde6a60637b6a71b8105245b629ac3fe77/library/core/src/panicking.rs:196 10: core::panicking::panic_str::hbed90c8c1c7b42fd at /rustc/e51e98dde6a60637b6a71b8105245b629ac3fe77/library/core/src/panicking.rs:171 11: core::option::expect_failed::h814960b2c8b9ead7 at /rustc/e51e98dde6a60637b6a71b8105245b629ac3fe77/library/core/src/option.rs:1980 12: core::option::Option::expect::h4039e9e81daa6805 at /rustc/e51e98dde6a60637b6a71b8105245b629ac3fe77/library/core/src/option.rs:894 13: optimus_test::main::hd545baf671ad6d49 at /home/lily/Git/basic-wgpu/src/main.rs:22 20 │ }; 21 │ 22 > let adapter = instance 23 │ .enumerate_adapters(wgpu::Backends::VULKAN) 24 │ .find(|a| a.is_surface_supported(&surface) && a.get_info().name.starts_with("Intel")) 14: core::ops::function::FnOnce::call_once::h6d68ffc69783558e at /rustc/e51e98dde6a60637b6a71b8105245b629ac3fe77/library/core/src/ops/function.rs:250 ⋮ 15 frames hidden ⋮ [2024-01-11T20:23:35Z INFO wgpu_core::global] Dropping Global