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
|
@ -562,6 +562,8 @@ static uint32_t
|
||||||
gbm_format_for_depth(CARD8 depth)
|
gbm_format_for_depth(CARD8 depth)
|
||||||
{
|
{
|
||||||
switch (depth) {
|
switch (depth) {
|
||||||
|
case 15:
|
||||||
|
return GBM_FORMAT_ARGB1555;
|
||||||
case 16:
|
case 16:
|
||||||
return GBM_FORMAT_RGB565;
|
return GBM_FORMAT_RGB565;
|
||||||
case 24:
|
case 24:
|
||||||
|
|
|
@ -116,6 +116,8 @@ static uint32_t
|
||||||
gbm_format_for_depth(int depth, int gles)
|
gbm_format_for_depth(int depth, int gles)
|
||||||
{
|
{
|
||||||
switch (depth) {
|
switch (depth) {
|
||||||
|
case 15:
|
||||||
|
return GBM_FORMAT_ARGB1555;
|
||||||
case 16:
|
case 16:
|
||||||
return GBM_FORMAT_RGB565;
|
return GBM_FORMAT_RGB565;
|
||||||
case 24:
|
case 24:
|
||||||
|
|
Loading…
Reference in New Issue