render/allocator/gbm: add _with_drm_fd to create function name

Reserve wlr_gbm_allocator_create() for a potential future function
which takes an already-existing gbm_device as input.
This commit is contained in:
Simon Ser 2023-11-30 21:07:48 +01:00
parent b992930ebe
commit bf75706555
3 changed files with 3 additions and 3 deletions

View file

@ -192,7 +192,7 @@ static struct wlr_gbm_allocator *get_gbm_alloc_from_alloc(
return alloc;
}
struct wlr_allocator *wlr_gbm_allocator_create(int fd) {
struct wlr_allocator *wlr_gbm_allocator_create_with_drm_fd(int fd) {
uint64_t cap;
if (drmGetCap(fd, DRM_CAP_PRIME, &cap) ||
!(cap & DRM_PRIME_CAP_EXPORT)) {