XWayland fails to import buffer using GBM on NVIDIA driver 515.76
Using Nvidia driver 515.76 on NVIDIA GeForce GTX 1050 (Ubuntu 22.04), system is dual card laptop (Intel+Nvidia) configured to use Nvidia card. Tested on Weston 9 & Wlroots based compositor using glxgears
client.
XWayland errors out with message: Error getting buffer
The error comes from a previous calls to gbm_bo_create_with_modifiers
in xwayland-glamor-gbm.c
line 295 which returns NULL
, so xwl_glamor_gbm_create_pixmap_for_bo
is not called and as a result no buffer is available for that resulting pixmap:
Example args used in gbm_bo_create_with_modifiers
are: width: 32, height: 32, format: 875713089, num_modifiers: 14
and
-
modifiers
(hex):- 0
- 300000000cdb015
- 300000000cdb014
- 300000000cdb013
- 300000000cdb012
- 300000000cdb011
- 300000000cdb010
- 3000000004fe015
- 3000000004fe014
- 3000000004fe013
- 3000000004fe012
- 3000000004fe011
- 3000000004fe010
- ffffffffffffff
Other failing call using same modifiers: width: 300, height: 300, format: 875713112, num_modifiers: 14