[GTK4][Renderer][probably: NVIDIA/Intel/Optimus] GL renderer not drawing anything, Vulkan renderer with heavy artifacts
Reproduction steps
A. Start a GTK app (e.g. nautilus, gnome-control-center etc.) with no special environment setting or GSK_RENDERER=opengl
B. Alternatively, start a GTK app with GSK_RENDERER=vulkan (only with custom compiled GTK incl. Vulkan support)
C. Start the app with GSK_RENDERER=cairo
Current behavior
A. The app will open a window of the correct size, containing a slightly shifted copy of the previous screen contents of that area and never paint over it. This window has no decoration, but it can be dragged by clicking in the approximate location of a title bar (if there was one). It can also be resized, but on expansion, it will just keep the screen contents of the screen area it should now draw on [see screenshot 1]
B. The app will open a window normally, but produce all kinds of visual artifacts on moving the window or interacting with it. Flickering, vertical and horizonal lines, parts of the window not redrawn or becoming translucent (= background). (Trying to take a screenshot redraws the window, so the artifacts cannot be seen.)
C. Everything works as expected
Expected outcome
A./B. The GTK app runs normally
Version information
gtk-4-12 compiled from git incl. Vulkan support gtk4-4.10.5-1.fc38 (fedora repository) exhibits same behaviour for GL renderer (no Vulkan support)
System
Fedora 38 x86_64
Graphics
Optimus system with: Intel Corporation HD Graphics 5500 (rev 09) - Mesa 23.1.6 NVIDIA Corporation GM108M [GeForce 940M] (rev a2) - proprietary NVIDIA 535.104.05