Bug 31819 - [Xrender] Nothing drawn with CompositeGlyphs and a linear gradient source
Summary: [Xrender] Nothing drawn with CompositeGlyphs and a linear gradient source
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium minor
Assignee: Carl Worth
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-21 09:07 UTC by Uli Schlachter
Modified: 2011-10-30 10:53 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Test case (2.22 KB, text/plain)
2010-11-21 09:07 UTC, Uli Schlachter
no flags Details

Description Uli Schlachter 2010-11-21 09:07:16 UTC
Created attachment 40456 [details]
Test case

Hi,

I took a closer look at the results of cairo's test suite results when run against Xvfb vs my intel graphics card and noticed that there are a couple of tests where text is missing.

I came up with a cairo-free test case (attached). It can be compiled with

 g++ -o missing_text missing_text.c `pkg-config --cflags --libs xrender`

I am using debian testing's xserver-xorg-video-intel 2:2.13.0-2. When run against Xephyr, a window with a linear gradient is displayed. Running it against my X server results in a black rectangle where the glyph should be.

From cairo's test suite's result I'd guess that the same happens with other types of source images, but I haven't verified this with a test case yet.

Cheers,
Uli
Comment 1 Chris Wilson 2011-06-19 11:08:36 UTC
Fixed in sna.
Comment 2 Chris Wilson 2011-10-30 05:46:08 UTC
This is one of the areas in UXA that can just die... Just use SNA already ;-)
Comment 3 Chris Wilson 2011-10-30 10:53:20 UTC
I've still no intention of rewriting UXA in the same manner as SNA to avoid this mistake (because people will still complain about the radical changes required), however Julien didn't like this bug being closed with "use sna" so make UXA fallback rather than fail.

commit 5c45622b889ba66b6476241601e1458d219c45ba
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Oct 30 17:49:19 2011 +0000

    uxa/glyphs: Fallback rather than fail to render with a non-solid Source
    
    Reported-by: Uli Schlachter <psychon@znc.in>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31819
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.