GPU: GeForce GTX 1050/PCIe/SSE2 with proprietary drivers (NVIDIA 460.67)
It works when i start: cargo run --bin quad --features=vulkan
I checked that the egl, gles2 is working on C/C++ examples.
I checked with es2tri.c with manual x11 window creation and some other examples using glfw and SDL. So system is correct.
But when I start using: RUST_LOG=info cargo run --bin quad --features=gl I got black screen.
Here output:
[2021-05-26T18:03:03Z INFO winit::platform_impl::platform::x11::window] Guessed window scale factor: 1
[2021-05-26T18:03:03Z INFO gfx_backend_gl::window::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_KHR_platform_wayland EGL_EXT_platform_wayland EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless"
[2021-05-26T18:03:03Z INFO gfx_backend_gl::window::egl] Loading Wayland library to get the current display
[2021-05-26T18:03:03Z INFO gfx_backend_gl::window::egl] Loading X11 library to get the current display
[2021-05-26T18:03:03Z INFO gfx_backend_gl::window::egl] Using X11 platform
[2021-05-26T18:03:03Z INFO gfx_backend_gl::window::egl] Display vendor "NVIDIA", version (1, 5), extensions: "EGL_EXT_buffer_age EGL_EXT_client_sync EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_MESA_image_dma_buf_export EGL_EXT_output_base EGL_EXT_stream_acquire_mode EGL_EXT_sync_reuse EGL_IMG_context_priority EGL_KHR_config_attribs EGL_KHR_create_context_no_error EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_partial_update EGL_KHR_swap_buffers_with_damage EGL_KHR_no_config_context 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_reusable_sync EGL_KHR_stream EGL_KHR_stream_attrib EGL_KHR_stream_consumer_gltexture EGL_KHR_stream_cross_process_fd EGL_KHR_stream_fifo EGL_KHR_stream_producer_eglsurface EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_NV_nvrm_fence_sync EGL_NV_post_sub_buffer EGL_NV_quadruple_buffer EGL_NV_stream_consumer_eglimage EGL_NV_stream_cross_display EGL_NV_stream_cross_object EGL_NV_stream_cross_process EGL_NV_stream_cross_system EGL_NV_stream_dma EGL_NV_stream_flush EGL_NV_stream_metadata EGL_NV_stream_remote EGL_NV_stream_reset EGL_NV_stream_socket EGL_NV_stream_socket_inet EGL_NV_stream_socket_unix EGL_NV_stream_sync EGL_NV_stream_fifo_next EGL_NV_stream_fifo_synchronous EGL_NV_stream_consumer_gltexture_yuv EGL_NV_stream_attrib EGL_NV_stream_origin EGL_NV_system_time EGL_NV_output_drm_flip_event EGL_NV_triple_buffer EGL_WL_bind_wayland_display EGL_WL_wayland_eglstream"
[2021-05-26T18:03:03Z INFO gfx_backend_gl::window::egl] Trying native-render
[2021-05-26T18:03:03Z WARN gfx_backend_gl::window::egl] No config found!
[2021-05-26T18:03:03Z INFO gfx_backend_gl::window::egl] Trying presentation
[2021-05-26T18:03:03Z INFO gfx_backend_gl::window::egl] EGL_KHR_surfaceless_context is present. No need to create a dummy pbuffer
[2021-05-26T18:03:03Z INFO gfx_backend_gl] Vendor: "NVIDIA Corporation"
[2021-05-26T18:03:03Z INFO gfx_backend_gl] Renderer: "GeForce GTX 1050/PCIe/SSE2"
[2021-05-26T18:03:03Z INFO gfx_backend_gl] Version: 3.2, NVIDIA 460.67
[2021-05-26T18:03:03Z INFO gfx_backend_gl] Shading Language: 3.2
[2021-05-26T18:03:03Z INFO gfx_backend_gl] Supported Features: INDEPENDENT_BLENDING | SAMPLER_ANISOTROPY | INSTANCE_RATE | MUTABLE_COMPARISON_SAMPLER | NDC_Y_UP
[2021-05-26T18:03:03Z INFO gfx_backend_gl] Legacy Features: DRAW_INSTANCED | DRAW_INDEXED_INSTANCED | VERTEX_BASE | SRGB_COLOR | CONSTANT_BUFFER | COPY_BUFFER | SAMPLER_OBJECTS | EXPLICIT_LAYOUTS_IN_SHADER | INSTANCED_ATTRIBUTE_BINDING
[2021-05-26T18:03:03Z INFO gfx_backend_gl] Memory types: [
(
MemoryType {
properties: CPU_VISIBLE | COHERENT | CPU_CACHED,
heap_index: 1,
},
Buffer(
TRANSFER_SRC | TRANSFER_DST | UNIFORM_TEXEL | STORAGE_TEXEL | UNIFORM | STORAGE | INDEX | VERTEX | INDIRECT,
),
),
(
MemoryType {
properties: CPU_VISIBLE | COHERENT,
heap_index: 1,
},
Buffer(
TRANSFER_SRC | TRANSFER_DST | UNIFORM_TEXEL | STORAGE_TEXEL | UNIFORM | STORAGE | INDEX | VERTEX | INDIRECT,
),
),
(
MemoryType {
properties: DEVICE_LOCAL,
heap_index: 0,
},
Buffer(
TRANSFER_SRC | TRANSFER_DST | UNIFORM_TEXEL | STORAGE_TEXEL | UNIFORM | STORAGE | INDEX | VERTEX | INDIRECT,
),
),
(
MemoryType {
properties: DEVICE_LOCAL,
heap_index: 0,
},
Image,
),
]
AdapterInfo { name: "GeForce GTX 1050/PCIe/SSE2", vendor: 4318, device: 0, device_type: DiscreteGpu }
[2021-05-26T18:03:03Z INFO gfx_backend_gl] Debug output is enabled
[2021-05-26T18:03:03Z INFO gfx_backend_gl::device] Created frame buffer 1
Memory types: [MemoryType { properties: CPU_VISIBLE | COHERENT | CPU_CACHED, heap_index: 1 }, MemoryType { properties: CPU_VISIBLE | COHERENT, heap_index: 1 }, MemoryType { properties: DEVICE_LOCAL, heap_index: 0 }, MemoryType { properties: DEVICE_LOCAL, heap_index: 0 }]
[2021-05-26T18:03:03Z WARN gfx_backend_gl::device] View format 35907 is different from base 6408
formats: Some([Rgba8Srgb, Bgra8Srgb])
SwapchainConfig { present_mode: FIFO, composite_alpha_mode: OPAQUE, format: Rgba8Srgb, extent: Extent2D { width: 1024, height: 768 }, image_count: 2, image_layers: 1, image_usage: COLOR_ATTACHMENT }
[2021-05-26T18:03:03Z INFO gfx_backend_gl::device] Created frame buffer 4
[2021-05-26T18:03:03Z INFO gfx_backend_gl::device] Created frame buffer 5
[2021-05-26T18:03:03Z INFO gfx_backend_gl::device] Compiled shader 2
[2021-05-26T18:03:03Z INFO gfx_backend_gl::device] Compiled shader 3
[2021-05-26T18:03:03Z INFO gfx_backend_gl::device] Linked program 1
[2021-05-26T18:03:03Z INFO quad] Wrote the pipeline cache to quad_pipeline_cache (0 bytes)
[2021-05-26T18:03:03Z WARN gfx_backend_gl] [API/Performance] ID 131218 : Program/shader state performance warning: Vertex shader in program 1 is being recompiled based on GL state.
resized to PhysicalSize { width: 1024, height: 768 }
SwapchainConfig { present_mode: FIFO, composite_alpha_mode: OPAQUE, format: Rgba8Srgb, extent: Extent2D { width: 1024, height: 768 }, image_count: 2, image_layers: 1, image_usage: COLOR_ATTACHMENT }
Short info header:
It works when i start:
cargo run --bin quad --features=vulkan
I checked that the egl, gles2 is working on C/C++ examples. I checked withes2tri.c
with manual x11 window creation and some other examples usingglfw
andSDL
. So system is correct.But when I start using:
RUST_LOG=info cargo run --bin quad --features=gl
I got black screen.Here output: