gbm: Fix the alpha masks in the GBM format table.
authorEric Anholt <eric@anholt.net>
Fri, 23 Feb 2018 22:55:51 +0000 (14:55 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 23 Feb 2018 23:03:36 +0000 (15:03 -0800)
commit880573e7370b866c94513f59ad0bb0b10660643f
treea4662deb9a9b2aaa0db7f3ebd7b5ed1716018f3c
parentb54bf0e3e3378725dec924f8152dcb012dffcd2e
gbm: Fix the alpha masks in the GBM format table.

Once GBM started looking at the values of the alpha masks, ARGB/ABGR
wouldn't match any more because we had both A and R in the low bits.

Fixes: 2ed344645d65 ("gbm/dri: Add RGBA masks to GBM format table")
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/gbm/backends/dri/gbm_dri.c