[Glamor] Gradients are broken with glamor when RepeatReflect is set

Pasqual Castellón p.castellon at cadt.com
Tue Jan 23 17:28:53 UTC 2018


HI Chris,
Could this problem be related with this other?

Dear Sirs,

I have a problem with xlib output refering to XSetDashes. The dotted
lines using 2 array length is working (eg 1,1) but when I use a longer
array length it does not work (eg 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1). Then
the line is showed as dash-dot and not as dot.

It used to work with CentOS but now the problem appeared after
installilng fedora 26. Any clue?

I think this problem is possibly related to glamor module using NOUVEAU.

This is a sample code:


Pasqual.



El 23/01/18 a les 18:24, Chris Wilson ha escrit:
> Quoting Clemens Eisserer (2018-01-23 17:03:04)
>> Hi,
>>
>> Great to see movement regading this issue.
>>
>>> It's broken with llvmpipe/softpipe as well. Does it render correctly
>>> with glamor on i965? If so, maybe it's a Gallium non-driver issue.
>> Glamor on Intel Gen5 (Arrendale) procudes results consistent with
>> radeonsi/llvmpipe.
>> So it seems the shader is the culprit.
> Radial shader (which we think is correct):
> 	t = abs(fract(t * 0.5 + 0.5) * 2.0 - 1.0);
>
> Linear shader (note unnormalized):
> 	distance = abs(mod(distance + _pt_distance, 2.0 * _pt_distance) - _pt_distance);
>
> Which makes the same mistake as I did in using mod() instead of the GL
> definition of fract(). Simplest fix will be to normalize distance and
> then use the correct transformation from the radial shader.
> -Chris
> _______________________________________________
> xorg at lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: https://lists.x.org/mailman/listinfo/xorg
> Your subscription address: %(user_address)s
>

-- 
*Pasqual Castellón*
Vicepresident - Software Division
skype: pasqual.cadt

CADT Software & Drafting, S.L.
Sant Cugat del Vallès - Barcelona
http://www.cadt.com

Follow us on:
Facebook <http://www.facebook.com/cadtlacedesign>
Twitter <http://www.twitter.com/cadt_sd>
Instagram <http://www.instagram.com/cadt_sd>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/glamor/attachments/20180123/57e71ac2/attachment.html>


More information about the Glamor mailing list