mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 21:00:11 +01: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
(cherry picked from commit 08113b8923)
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1494>
This commit is contained in:
parent
74d02b98ab
commit
34832a182c
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