Nouvea + Wayland: OpenGL рендерится не на видеокарте

Здравствуйте!

Имею на борту карточку GTX 1060.
Недавно перешел на вейленд со свободными драйверами. Вроде бы все окей, но в играх получаю запредельно низкий ФПС (2-10). Потыкал разные более менее нагруженые демки шейдерные (типа этой https://www.shadertoy.com/view/tltXz7) там тоже ФПС никакой и грузится ЦПУ под 100.
glxgears говорит что рендерится на ГПУ
GL_RENDERER   = NV136
GL_VERSION    = 4.3 (Compatibility Profile) Mesa 20.0.4
GL_VENDOR     = nouveau

glxinfo | grep version:

server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.3
    Max compat profile version: 4.3
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL core profile version string: 4.3 (Core Profile) Mesa 20.0.4
OpenGL core profile shading language version string: 4.30
OpenGL version string: 4.3 (Compatibility Profile) Mesa 20.0.4
OpenGL shading language version string: 4.30
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.0.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    GL_EXT_separate_shader_objects, GL_EXT_shader_implicit_conversions,

glxinfo|grep render:

direct rendering: Yes
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, GLX_MESA_swap_control,
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: NV136
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
    GL_MESA_texture_signed_rgba, GL_NV_conditional_render,
    GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
    GL_NV_conditional_render, GL_NV_conservative_raster,
    GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB_write_control,
    GL_MESA_shader_integer_functions, GL_NV_conditional_render,
    GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

У кого-нибудь есть предположения: что это может и чего не хватает?
Mereng
чего не хватает?
Иксов с блобом
vs220
Mereng
чего не хватает?
Иксов с блобом
Ой, давайте без этого. Вернусь обратно, когда мои красные глаза выпадут из глазниц.
Mereng
без этого
Ну тогда и без игрушек требовательных, это не стеб а суровая правда жизни к сожалению
vs220
требовательных
Да тут даже не в требовательности дело, почему процессор рендерит 3д. Явно же что-то не то.
L
Mereng
почему процессор рендерит 3д
Судя по вашему выводу видеокарта а не проц.
direct rendering: Yes
GL_VENDOR = nouveau
vs220
Судя по вашему выводу видеокарта
Это понятно, это glxgears может и рендерется на видеокарте. А вот тот же WebGL (демку в посте прикладывал) грузит именно проц, видно по нагрузке до 100%.
Mereng
WebGL (демку в посте прикладывал) грузит именно проц
А можно глянуть что за процессы грузят
при запущенной демке
вывод покажите
ps -eo cmd --sort=-%cpu |head -n5
Ну и заодно что на chrome://gpu ( в адресной строке ввести) показывает

И вы хотите браузерные игрушки на WebGL ?
vs220
вывод покажите
/opt/google/chrome/chrome --type=gpu-process --field-trial-handle=10034636498204525039,2497047225638071387,131072 --gpu-preferences=MAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAQAAAAAAAAAAAAAAAAAAAACAAAAAAAAAA= --use-gl=swiftshader-webgl --shared-files
[kworker/u8:2-events_unbound]
[kworker/u8:1-events_unbound]
/opt/google/chrome/chrome

vs220
Ну и заодно что на chrome://gpu ( в адресной строке ввести) показывает

Graphics Feature Status
Canvas: Software only, hardware acceleration unavailable
Flash: Software only. Hardware acceleration disabled
Flash Stage3D: Software only. Hardware acceleration disabled
Flash Stage3D Baseline profile: Software only. Hardware acceleration disabled
Compositing: Software only. Hardware acceleration disabled
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Disabled
OpenGL: Disabled
Hardware Protected Video Decode: Disabled
Rasterization: Software only. Hardware acceleration disabled
Skia Renderer: Enabled
Video Decode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Software only, hardware acceleration unavailable
WebGL2: Software only, hardware acceleration unavailable
Problems Detected
Gpu compositing has been disabled, either via blacklist, about:flags or the command line. The browser will fall back to software compositing and hardware acceleration will be unavailable.
Disabled Features: gpu_compositing
Version Information
Data exported	2020-04-12T18:50:03.899Z
Chrome version	Chrome/81.0.4044.92
Operating system	Linux 5.6.3-arch1-1
Software rendering list URL	https://chromium.googlesource.com/chromium/src/+/e98e6f21168a55e7ba57202f56323911cd9d31d1/gpu/config/software_rendering_list.json
Driver bug list URL	https://chromium.googlesource.com/chromium/src/+/e98e6f21168a55e7ba57202f56323911cd9d31d1/gpu/config/gpu_driver_bug_list.json
ANGLE commit id	e514b0cb7e6b
2D graphics backend	Skia/81 1c081906e4313c8213c6ec4ea8371c7c6016f8b7
Command Line	/opt/google/chrome/google-chrome --flag-switches-begin --flag-switches-end --disable-webrtc-apm-in-audio-service
Driver Information
Initialization time	16
In-process GPU	false
Passthrough Command Decoder	false
Sandboxed	true
GPU0	VENDOR= 0x10de [Google Inc.], DEVICE=0x1c02 [Google SwiftShader] *ACTIVE*
Optimus	false
AMD switchable	false
Driver vendor
Driver version	4.1.0.7
GPU CUDA compute capability major version	0
Pixel shader version	3.00
Vertex shader version	3.00
Max. MSAA samples	4
Machine model name
Machine model version
GL_VENDOR	Google Inc.
GL_RENDERER	Google SwiftShader
GL_VERSION	OpenGL ES 3.0 SwiftShader 4.1.0.7
GL_EXTENSIONS	GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_depth32 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_framebuffer_object GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_surfaceless_context GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_3D GL_OES_vertex_array_object GL_OES_vertex_half_float GL_EXT_blend_minmax GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_draw_buffers GL_EXT_float_blend GL_EXT_instanced_arrays GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_texture_compression_dxt1 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_ARB_texture_rectangle GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_CHROMIUM_color_buffer_float_rgba GL_CHROMIUM_texture_filtering_hint GL_NV_depth_buffer_float2 GL_NV_fence GL_NV_read_depth GL_NV_read_stencil
Disabled Extensions
Disabled WebGL Extensions
Window system binding vendor	Google Inc.
Window system binding version	1.4 SwiftShader 4.1.0.7
Window system binding extensions	EGL_KHR_create_context EGL_KHR_get_all_proc_addresses EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_KHR_image_base EGL_KHR_surfaceless_context EGL_ANGLE_iosurface_client_buffer EGL_ANDROID_framebuffer_target EGL_ANDROID_recordable
Window manager	wlroots wm
Compositing manager	Yes
System visual ID	0
RGBA visual ID	0
Direct rendering version	unknown
Reset notification strategy	0x0000
GPU process crash count	0
gfx::BufferFormats supported for allocation and texturing	R_8: not supported, R_16: not supported, RG_88: not supported, BGR_565: not supported, RGBA_4444: not supported, RGBX_8888: not supported, RGBA_8888: not supported, BGRX_8888: not supported, BGRX_1010102: not supported, RGBA_1010102: not supported, BGRA_8888: not supported, RGBA_F16: not supported, YVU_420: not supported, YUV_420_BIPLANAR: not supported, P010: not supported
Compositor Information
Tile Update Mode	One-copy
Partial Raster	Enabled
GpuMemoryBuffers Status
R_8	Software only
R_16	Software only
RG_88	Software only
BGR_565	Software only
RGBA_4444	Software only
RGBX_8888	Software only
RGBA_8888	Software only
BGRX_8888	Software only
BGRX_1010102	Software only
RGBA_1010102	Software only
BGRA_8888	Software only
RGBA_F16	Software only
YVU_420	Software only
YUV_420_BIPLANAR	Software only
P010	Software only
Display(s) Information
Info	Display[33] bounds=[0,0 1920x1080], workarea=[0,0 1920x1080], scale=1, rotation=0, panel_rotation=0 external.
Color space information	{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}
SDR white level in nits	100
Bits per color component	8
Bits per pixel	24
Refresh Rate in Hz	59
Video Acceleration Information
Vulkan Information
Driver Information for Hardware GPU
Initialization time	16
In-process GPU	false
Passthrough Command Decoder	false
Sandboxed	true
GPU0	VENDOR= 0x10de [Google Inc.], DEVICE=0x1c02 [Google SwiftShader] *ACTIVE*
Optimus	false
AMD switchable	false
Driver vendor
Driver version	4.1.0.7
GPU CUDA compute capability major version	0
Pixel shader version	3.00
Vertex shader version	3.00
Max. MSAA samples	4
Machine model name
Machine model version
GL_VENDOR	Google Inc.
GL_RENDERER	Google SwiftShader
GL_VERSION	OpenGL ES 3.0 SwiftShader 4.1.0.7
GL_EXTENSIONS	GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_depth32 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_framebuffer_object GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_surfaceless_context GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_3D GL_OES_vertex_array_object GL_OES_vertex_half_float GL_EXT_blend_minmax GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_draw_buffers GL_EXT_float_blend GL_EXT_instanced_arrays GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_texture_compression_dxt1 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_ARB_texture_rectangle GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_CHROMIUM_color_buffer_float_rgba GL_CHROMIUM_texture_filtering_hint GL_NV_depth_buffer_float2 GL_NV_fence GL_NV_read_depth GL_NV_read_stencil
Disabled Extensions
Disabled WebGL Extensions
Window system binding vendor	Google Inc.
Window system binding version	1.4 SwiftShader 4.1.0.7
Window system binding extensions	EGL_KHR_create_context EGL_KHR_get_all_proc_addresses EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_KHR_image_base EGL_KHR_surfaceless_context EGL_ANGLE_iosurface_client_buffer EGL_ANDROID_framebuffer_target EGL_ANDROID_recordable
Window manager	wlroots wm
Compositing manager	Yes
System visual ID	0
RGBA visual ID	0
Direct rendering version	unknown
Reset notification strategy	0x0000
GPU process crash count	0
gfx::BufferFormats supported for allocation and texturing	R_8: not supported, R_16: not supported, RG_88: not supported, BGR_565: not supported, RGBA_4444: not supported, RGBX_8888: not supported, RGBA_8888: not supported, BGRX_8888: not supported, BGRX_1010102: not supported, RGBA_1010102: not supported, BGRA_8888: not supported, RGBA_F16: not supported, YVU_420: not supported, YUV_420_BIPLANAR: not supported, P010: not supported
Graphics Feature Status for Hardware GPU
Canvas: Software only, hardware acceleration unavailable
Flash: Software only. Hardware acceleration disabled
Flash Stage3D: Software only. Hardware acceleration disabled
Flash Stage3D Baseline profile: Software only. Hardware acceleration disabled
Compositing: Software only. Hardware acceleration disabled
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Disabled
OpenGL: Disabled
Hardware Protected Video Decode: Disabled
Rasterization: Software only. Hardware acceleration disabled
Skia Renderer: Enabled
Video Decode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Software only, hardware acceleration unavailable
WebGL2: Software only, hardware acceleration unavailable
Problems Detected for Hardware GPU
Gpu compositing has been disabled, either via blacklist, about:flags or the command line. The browser will fall back to software compositing and hardware acceleration will be unavailable.
Disabled Features: gpu_compositing
Log Messages
GpuProcessHost: The GPU process exited normally. Everything is okay.
[5236:5236:0412/214927.315361:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 0
[5236:5236:0412/214927.315438:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 1
[5236:5236:0412/214927.609206:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 0
[5236:5236:0412/214927.609284:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 1
[5236:5236:0412/214936.511726:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 0
[5236:5236:0412/214936.511765:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 1
[5236:5236:0412/214941.223178:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 0
[5236:5236:0412/214941.223224:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 1
[5236:5236:0412/214946.231534:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 0
[5236:5236:0412/214952.117230:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 0
[5236:5236:0412/214958.246459:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 0
[5236:5236:0412/215002.984889:ERROR:gles2_cmd_decoder.cc(10756)] : [.WebGL-0x20514db68500]RENDER WARNING: there is no texture bound to the unit 0

Опа, а ни OpenGL, ни вулкан он то и не видит, странно.

vs220
И вы хотите браузерные игрушки на WebGL ?
Да нет, это просто, простой способ проверки участвует ли видеокарта в рендеринге.
https://www.opennet.ru/opennews/art.shtml?num=49906 проблема решена, спасибо vs220.
 
Зарегистрироваться или войдите чтобы оставить сообщение.