From 3d27175b3cde077f11bec783dcdad6ee7dac657f Mon Sep 17 00:00:00 2001 From: stefan11111 Date: Tue, 25 Aug 2026 15:24:17 +0300 Subject: [PATCH] glamor/glamor_composite_glyphs.c: Fix wrong `!glamor_pixmap_is_memory` check When pixmaps aren't memory, that is the happy path When pixmaps are memory, we need to bail to glamor_composite, which bails to fb. Fixes the trashed rendering described in https://github.com/X11Libre/xserver/pull/1853 Signed-off-by: stefan11111 --- glamor/glamor_composite_glyphs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glamor/glamor_composite_glyphs.c b/glamor/glamor_composite_glyphs.c index 3c276282c8..2c83dca8d3 100644 --- a/glamor/glamor_composite_glyphs.c +++ b/glamor/glamor_composite_glyphs.c @@ -427,7 +427,7 @@ glamor_composite_glyphs(CARD8 op, */ if (_X_UNLIKELY(glyph_draw->width > glyph_max_dim || glyph_draw->height > glyph_max_dim || - !glamor_pixmap_is_memory((PixmapPtr)glyph_draw))) + glamor_pixmap_is_memory((PixmapPtr)glyph_draw))) { if (glyphs_queued) { glamor_glyphs_flush(op, src, dst, prog, glyph_atlas, glyphs_queued);