Is this a known issue (see layer colouring) for `-...
# magic
d
Is this a known issue (see layer colouring) for
-d OGL
use, the
-d XR
has various useful colours. Magic 8.3.485
Copy code
[    1.825530] i915 0000:00:02.0: [drm] Found 128MB of eDRAM
[    1.825550] fb0: switching to i915 from EFI VGA
[    1.825833] i915 0000:00:02.0: vgaarb: deactivate vga console
[    1.826656] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    1.826987] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27)
[    1.833839] i915 0000:00:02.0: [drm] [ENCODER:106:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it
[    1.833844] i915 0000:00:02.0: [drm] [ENCODER:117:DDI D/PHY D] is disabled/in DSI mode with an ungated DDI clock, gate it
[    2.139511] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[    2.199516] fbcon: i915drmfb (fb0) is primary device

$ glxinfo | grep string
server glx vendor string: SGI
server glx version string: 1.4
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Iris(R) Pro Graphics 580 (SKL GT4)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.1.4
OpenGL core profile shading language version string: 4.60
OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.4
OpenGL shading language version string: 4.60
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
t
FWIW I have the same here. I'm using the CAIRO renderer instead.
t
@dlmiles: Yes, this is a known issue with a long history. The icons on the right are generated on pixmaps, not in windows; this is known as "off-screen rendering" and is often disabled in OpenGL implementations. The solution is to enable Cairo graphics to draw the pixmaps. This can be done by compiling with the configuration switch
--enable-cairo-offscreen
.
👍 1
t
Oh, indeed, just rebuilt with that option and now it works fine. I can't see much difference between the cairo renderer and the OpenGL one though, not sure if one has an advantage over the other.
t
Early versions of Cairo were slow on some operations, but I think eventually they resolved all the issues with how to properly use the hardware acceleration and I no longer notice any difference, either.
👌 1
d
Thanks both, this is working for me now as well. It is not clear why the ifdef is not enabled by default, if the platform support exists during configure time. Then having a runtime option to enable/disable use of offscreen via
-d OGL_OFFSCREEN
to toggle what appears to be a toggle flag at runtime. Better it working with lower performance by default, with warning/suggestion to use
-d OGL_DIRECT
(disabling offscreen support) on starting may improve performance. Than it not working at all. Maybe
-d OGL
can autodetect mode. After my first two weeks of using magic I've setup a PR with a few crash fixes I kept triggering, probably due to doing novice things with the UI with baldy formed projects.