onscreen/native: Fall back to gbm_surface_create without flags
The Nvidia driver will return ENOSYS if any flags are used. Bug filed upstream on the NVIDIA forums. https://forums.developer.nvidia.com/t/gbm-surface-create-fails-if-flags-0/279951 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3304>
This commit is contained in:

committed by
Marge Bot

parent
32da2789bf
commit
9fee3a9ec1
@ -2446,6 +2446,15 @@ init_secondary_gpu_state_gpu_copy_mode (MetaRendererNative *renderer_nat
|
||||
width, height,
|
||||
format,
|
||||
GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING);
|
||||
|
||||
if (!gbm_surface)
|
||||
{
|
||||
gbm_surface = gbm_surface_create (gbm_device,
|
||||
width, height,
|
||||
format,
|
||||
0);
|
||||
}
|
||||
|
||||
if (!gbm_surface)
|
||||
{
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
|
Reference in New Issue
Block a user