diff options
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 2f49f12c..79514c52 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1170,6 +1170,14 @@ static PixmapPtr sna_create_pixmap(ScreenPtr screen, goto fallback; } + if (usage == SNA_CREATE_GLYPHS) { + if (flags & KGEM_CAN_CREATE_GPU) + return sna_pixmap_create_scratch(screen, + width, height, depth, + -I915_TILING_Y); + else + goto fallback; + } if (usage == SNA_CREATE_SCRATCH) { if (flags & KGEM_CAN_CREATE_GPU) return sna_pixmap_create_scratch(screen, |