mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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: 2ed344645d ("gbm/dri: Add RGBA masks to GBM format table")
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
b54bf0e3e3
commit
880573e737
1 changed files with 2 additions and 2 deletions
|
|
@ -562,7 +562,7 @@ static const struct gbm_dri_visual gbm_dri_visuals_table[] = {
|
|||
},
|
||||
{
|
||||
GBM_FORMAT_ARGB8888, __DRI_IMAGE_FORMAT_ARGB8888,
|
||||
{ 0x00ff0000, 0x0000ff00, 0x000000ff, 0x000000ff },
|
||||
{ 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 },
|
||||
},
|
||||
{
|
||||
GBM_FORMAT_XBGR8888, __DRI_IMAGE_FORMAT_XBGR8888,
|
||||
|
|
@ -570,7 +570,7 @@ static const struct gbm_dri_visual gbm_dri_visuals_table[] = {
|
|||
},
|
||||
{
|
||||
GBM_FORMAT_ABGR8888, __DRI_IMAGE_FORMAT_ABGR8888,
|
||||
{ 0x000000ff, 0x0000ff00, 0x00ff0000, 0x000000ff },
|
||||
{ 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000 },
|
||||
},
|
||||
{
|
||||
GBM_FORMAT_XRGB2101010, __DRI_IMAGE_FORMAT_XRGB2101010,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue