xserver/fb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jeremy Huddleston Sequoia 6dcc9cf09c fb: Don't widen the planemask over padding bits when ROOTLESS_SAFEALPHA is set
Wide LineDoubleDash lines drew black on screen under XQuartz while the server's own XGetImage readback showed the
correct pixels, because at depth 24 that readback ignores alpha. Opaque text and dashed arcs take the same path.

fbValidateGC widens a planemask that covers the drawable's depth to cover its full bits per pixel, so the blit and
fill paths can take their all-ones shortcuts. On a rootless server that also writes the alpha channel of the window's
premultiplied surface, which CoreGraphics then composites as black. Rootless keeps that alpha opaque by clearing the
bits from the planemask, but only its own ValidateGC does so, and mi revalidates the GC in the middle of a drawing
operation to swap the foreground for the background pixel. By then the damage layer has unwrapped the rootless funcs
down to fb, so the reassertion never happens and the rest of the operation lands with a zero alpha channel.

Fixes: https://github.com/XQuartz/XQuartz/issues/230

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2026-08-24 12:36:34 +02:00
..
fb.h fb: reexport fbGetGCPrivateKey and add itw wrapped version 2025-12-19 12:38:56 +01:00
fb_priv.h fb: reexport fbGetGCPrivateKey and add itw wrapped version 2025-12-19 12:38:56 +01:00
fballpriv.c fb: reexport fbGetGCPrivateKey and add itw wrapped version 2025-12-19 12:38:56 +01:00
fbarc.c fb: unexport fbGetGCPrivate() macro 2025-06-12 16:41:09 +02:00
fbbits.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbbits.h fb: unexport fbGetGCPrivate() macro 2025-06-12 16:41:09 +02:00
fbblt.c fb: move FbStipStrideToBitsStride() to fbblt.c 2025-06-12 16:40:17 +02:00
fbbltone.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbcmap_mi.c fb: unexport fbListInstalledColormaps() 2025-06-12 16:40:12 +02:00
fbcopy.c fb: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
fbfill.c fb: unexport fbValidateDrawable() 2025-06-12 16:39:59 +02:00
fbfillrect.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbfillsp.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbgc.c fb: Don't widen the planemask over padding bits when ROOTLESS_SAFEALPHA is set 2026-08-24 12:36:34 +02:00
fbgetsp.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbglyph.c fb/mi/glamor: reject glyphs with negative dimensions 2026-07-22 16:20:02 +02:00
fbimage.c fb: unexport FbBitsStrideToStipStride() macro 2025-06-12 16:40:20 +02:00
fbline.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fboverlay.c fb: use calloc() instead of malloc() 2025-06-12 16:48:17 +02:00
fboverlay.h fb: overlay: drop unused fbOverlaySetupScreen() 2025-06-12 16:36:17 +02:00
fbpict.c fb: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
fbpict.h fb: pict: make fbGlyphs() static 2025-06-12 16:35:29 +02:00
fbpict_priv.h fb: pict: unexport fbTriangles() 2025-06-12 16:35:19 +02:00
fbpixmap.c fb: fix unused function fbInitializeDrawable() 2025-08-29 19:05:04 +02:00
fbpoint.c fb: unexport FbBitsStrideToStipStride() macro 2025-06-12 16:40:20 +02:00
fbpush.c fb: unexport FbBitsStrideToStipStride() macro 2025-06-12 16:40:20 +02:00
fbrop.h
fbscreen.c dix: add dixAllocServerXID() 2025-06-12 17:21:48 +02:00
fbseg.c fb: unexport fbGetGCPrivate() macro 2025-06-12 16:41:09 +02:00
fbsetsp.c fb: unexport fbValidateDrawable() 2025-06-12 16:39:59 +02:00
fbsolid.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbtile.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbtrap.c fb: pict: unexport fbRasterizeTrapezoid() 2025-06-12 16:35:11 +02:00
fbutil.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbwindow.c treewide: drop COMPOSITE symbol 2025-06-12 16:47:01 +02:00
meson.build treewide: remove "lib" prefix in static_library names (meson) 2025-07-03 12:01:52 +02:00
wfbrename.h fb: reexport fbGetGCPrivateKey and add itw wrapped version 2025-12-19 12:38:56 +01:00