Repository: vscode
Issue: Snap: Hardware acceleration is broken for wayland
Labels: bug,linux,gpu,snap

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.48.2
- OS Version: Ubuntu 20.04

Trying to turn on hardware acceleration with 

```
	"disable-hardware-acceleration": false,
```

as well as other Chromium command line arguments that override rendering blacklists etc.
results in still hardware acceleration being broken.

This seems to work just fine on Flatpak version.

```
/usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: g_date_time_format_iso8601
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
[429952:0831/142456.639430:ERROR:gl_surface_glx.cc(88)] glXGetFBConfigs failed.
[429952:0831/142456.639479:ERROR:gl_surface_glx.cc(128)] Failed to get GLXConfig
[429952:0831/142456.639484:ERROR:gl_surface_glx.cc(477)] CreateDummyWindow(gfx::GetXDisplay()) failed
[429952:0831/142456.639489:ERROR:gl_initializer_x11.cc(148)] GLSurfaceGLX::InitializeOneOff failed.
[429952:0831/142456.641273:WARNING:x11_util.cc(1399)] X error received: serial 317, error_code 8 (BadMatch (invalid parameter attributes)), request_code 78, minor_code 0 (X_CreateColormap)
[429952:0831/142456.641338:ERROR:viz_main_impl.cc(176)] Exiting GPU process due to errors during initialization
[429927:0831/142456.644334:WARNING:gpu_process_host.cc(1225)] The GPU process has crashed 1 time(s)
[429927:0831/142456.697892:WARNING:gpu_process_host.cc(995)] Reinitialized the GPU process after a crash. The reported initialization time was 38 ms

Process Argv:     --ignore-gpu-blacklist --no-sandbox
GPU Status:       2d_canvas:                     unavailable_software
                  flash_3d:                      disabled_software
                  flash_stage3d:                 disabled_software
                  flash_stage3d_baseline:        disabled_software
                  gpu_compositing:               disabled_software
                  multiple_raster_threads:       enabled_on
                  oop_rasterization:             disabled_off
                  protected_video_decode:        disabled_off
                  rasterization:                 disabled_software
                  skia_renderer:                 disabled_off_ok
                  video_decode:                  disabled_software
                  viz_display_compositor:        enabled_on
                  viz_hit_test_surface_layer:    disabled_off_ok
                  webgl:                         unavailable_software
                  webgl2:                        unavailable_software

```
Steps to Reproduce:

1. Install snap vscode on machine with open source Radeon driver and Gnome Wayland
2. Set disable-hardware-acceleration preference
3. Run code --ignore-gpu-blacklist
4. Check code --status

I am not sure if the above X_CreateColormap crash is a direct cause of that, it's not that obvious.

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No
Yes