render/allocator/gbm: use gbm_bo_create_with_modifiers2() if available

The flags are not really used now but will be exposed soon.
This commit is contained in:
Simon Ser 2023-11-30 20:22:41 +01:00
parent a165261f7f
commit b992930ebe
2 changed files with 13 additions and 4 deletions

View file

@ -22,4 +22,7 @@ if gbm.found()
has = cc.has_function('gbm_bo_get_fd_for_plane', dependencies: [gbm])
internal_config.set10('HAVE_GBM_BO_GET_FD_FOR_PLANE', has)
has = cc.has_function('gbm_bo_create_with_modifiers2', dependencies: [gbm])
internal_config.set10('HAVE_GBM_BO_CREATE_WITH_MODIFIERS2', has)
endif