Bug 98508

Summary: Some linear gradients are broken
Product: xorg Reporter: Clemens Eisserer <linuxhippy>
Component: Server/Acceleration/glamorAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
self-contained testcase
none
Expected output
none
Bad output
none
testcase covering all 4 repeat types/linear & radial/2 stops & 8 stops none

Description Clemens Eisserer 2016-10-30 19:41:26 UTC
Created attachment 127630 [details]
self-contained testcase

Some linear gradients are broken when rendered using a AMD Mullins based laptop with glamor. 

The attached test-case should render a blue-red-blue gradient (at least that is intended and works on intel-sna), however with radeon+glamor it is mostly red.
Comment 1 Clemens Eisserer 2016-10-30 19:42:29 UTC
forgot to mention: the laptop is running an updated fedora-24 installation, with Xorg version: 

X.Org X Server 1.18.4
Release Date: 2016-07-19
Comment 2 Michel Dänzer 2016-10-31 03:44:22 UTC
Building xserver with

#define GLAMOR_GRADIENT_SHADER

in glamor/glamor_priv.h commented out avoids the problem.
Comment 3 Michel Dänzer 2018-01-23 16:45:27 UTC
Created attachment 136920 [details]
Expected output
Comment 4 Michel Dänzer 2018-01-23 16:45:57 UTC
Created attachment 136921 [details]
Bad output
Comment 5 Jeff Smith 2018-01-26 14:58:16 UTC
I finished tracking down the cause of this reflect-repeat linear gradient bug.  In the process of testing it, I ran across another issue with no-repeat gradients.  Fixes for those, and some other code cleanup can be found in this patch series:

https://patchwork.freedesktop.org/series/37173/
Comment 6 Jeff Smith 2018-02-01 05:25:55 UTC
Created attachment 137102 [details]
testcase covering all 4 repeat types/linear & radial/2 stops & 8 stops
Comment 7 Michel Dänzer 2018-02-01 07:17:35 UTC
Thanks for the report, fixed with https://cgit.freedesktop.org/xorg/xserver/commit/?id=3e377e238f7257fd01e56a4a25dfd77e033673e4 .
Comment 8 Clemens Eisserer 2018-02-01 07:40:24 UTC
Thanks!

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.