On 2018-02-26 04:33 PM, Adam Jackson wrote:
> This plumbs the full width color for solid pictures through to fb, exa,
> and glamor. External drivers and acceleration code may wish to make a
> similar change for sufficiently new servers.
> 
> v2: Don't break ABI (Michel Dänzer)
> 
> Signed-off-by: Adam Jackson <[email protected]>

[...]

> diff --git a/fb/fbpict.c b/fb/fbpict.c
> index 7ea0b668f8..759f0d5db7 100644
> --- a/fb/fbpict.c
> +++ b/fb/fbpict.c
> @@ -220,20 +220,10 @@ static pixman_image_t *
>  create_solid_fill_image(PicturePtr pict)
>  {
>      PictSolidFill *solid = &pict->pSourcePict->solidFill;
> -    pixman_color_t color;
> -    CARD32 a, r, g, b;
> +    /* pixman_color_t and xRenderColor have the same layout */
> +    pixman_color_t *color = (pixman_color_t *)&solid->color;

This should be ->fullcolor, shouldn't it?


The glamor changes create an opportunity for some cleanup around
glamor_set_color(_depth) and glamor_get_rgba_from_pixel as a follow-up.


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to