Bug 99240

Summary: glxinfo reports different extensions for wayland vs xorg.
Product: Mesa Reporter: pandiculationfinch
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: 13.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: wayland glxinfo output
xorg glxinfo output

Description pandiculationfinch 2017-01-01 14:47:30 UTC
Created attachment 128704 [details]
wayland glxinfo output

glxinfo reports different opengl extensions under wayland when compared to xorg.

seems to possibly cause stellaris to fail to launch. I'm not sure if this is a wayland bug, or a mesa bug, maybe even a SDL bug?

wayland stellaris errors:
==> system.log <==
[08:53:21][gfx_opengl.cpp:3187]: Loading settings for adapter -1, fullscreen=1, multisample=15
[08:53:21][gfx_opengl.cpp:3257]: Checking for multi-sampling support:
[08:53:21][gfx_opengl.cpp:3282]: MaxTextureWidth: 16384
[08:53:21][gfx_opengl.cpp:3283]: MaxTextureHeight: 16384
[08:53:21][graphicssettings.cpp:149]: 	2 samples supported.
[08:53:21][graphicssettings.cpp:149]: 	4 samples supported.
[08:53:21][graphicssettings.cpp:149]: 	8 samples supported.
[08:53:21][graphicssettings.cpp:180]: Support for Anisotropic filtering found.
[08:53:21][graphicssettings.cpp:183]: 	Max Anisotropic filtering supported: 16
[08:53:21][graphicssettings.cpp:184]: 	Anisotropic filtering set to: 16
[08:53:21][graphicssettings.cpp:669]: Using multisampling: 4
[08:53:21][graphicssettings.cpp:669]: Using multisampling: 4
[08:53:21][graphics.cpp:762]: Creating device with: HARDWARE_VERTEXPROCESSING
	Fullscreen=no
	Resolution=0x0

==> error.log <==
[08:53:21][gfx_opengl.cpp:1066]: SDL_GetWindowFromID failed: Invalid window
[08:53:21][gfx_opengl.cpp:1077]: SDL_GL_CreateContext failed: Invalid window
[08:53:21][gfx_opengl.cpp:1111]: glewInit failed: Missing GL version

==> system.log <==
[08:53:21][gfx_opengl.cpp:1028]:
OpenGL Version: [08:53:21][graphics.cpp:797]: Done creating device.

==> error.log <==
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/text.shader(Text)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/text.shader(Text3D)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Up)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Down)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Disable)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Over)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(TextUp)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(TextDown)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(TextDisable)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(TextOver)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Up)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Down)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Disable)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Over)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Up)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Down)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Disable)
[08:53:21][pdxshaderparser.cpp:1362]: Failed linking shader gfx/FX/buttonstate_onlydisable.shader(Over)
Comment 1 pandiculationfinch 2017-01-01 14:47:54 UTC
Created attachment 128705 [details]
xorg glxinfo output
Comment 2 pandiculationfinch 2017-01-01 14:51:10 UTC
diff of the first 50 or so lines of glxinfo.
diff wayland-glxinfo.txt xorg-glxinfo.txt | head -50
7,8c7,9
<     GLX_ARB_create_context, GLX_ARB_create_context_profile,
<     GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
---
>     GLX_ARB_create_context, GLX_ARB_create_context_profile, 
>     GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
>     GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
12,14c13,15
<     GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method,
<     GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
<     GLX_SGIX_visual_select_group, GLX_SGI_make_current_read
---
>     GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
>     GLX_OML_swap_method, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
>     GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_SGI_swap_control
34,39c35,41
<     GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB,
<     GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age,
<     GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
<     GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
<     GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
<     GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
---
>     GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
>     GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample,
>     GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile,
>     GLX_EXT_create_context_es_profile, GLX_EXT_fbconfig_packed_float,
>     GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context,
>     GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
>     GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
44c46
<     GLX_SGI_video_sync
---
>     GLX_SGI_swap_control, GLX_SGI_video_sync
50c52
<     Video memory: 7994MB
---
>     Video memory: 8039MB
300c302
< 192 GLX Visuals
---
> 480 GLX Visuals
Comment 3 Adam Jackson 2019-07-09 19:19:07 UTC
Fixed in xserver (1.21, once that's out) by:

commit 8469241592b94b002a975274a596ca0dcdd9563f
Author: Adam Jackson <ajax@redhat.com>
Date:   Wed May 8 14:09:00 2019 -0400

    xwayland: Add EGL-backed GLX provider

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.