mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-04 04:48:04 +02:00
xwayland/glamor: Handle depth 15 in gbm_format_for_depth
Prevents Xwayland with glamor from logging unexpected depth: 15 to stderr many times when running rendercheck -t blend -o clear Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1507>
This commit is contained in:
parent
49b8f131f7
commit
08113b8923
2 changed files with 4 additions and 0 deletions
|
|
@ -562,6 +562,8 @@ static uint32_t
|
|||
gbm_format_for_depth(CARD8 depth)
|
||||
{
|
||||
switch (depth) {
|
||||
case 15:
|
||||
return GBM_FORMAT_ARGB1555;
|
||||
case 16:
|
||||
return GBM_FORMAT_RGB565;
|
||||
case 24:
|
||||
|
|
|
|||
|
|
@ -116,6 +116,8 @@ static uint32_t
|
|||
gbm_format_for_depth(int depth, int gles)
|
||||
{
|
||||
switch (depth) {
|
||||
case 15:
|
||||
return GBM_FORMAT_ARGB1555;
|
||||
case 16:
|
||||
return GBM_FORMAT_RGB565;
|
||||
case 24:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue