mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 08:32:30 +00:00
render: remove wlr_ prefix from wlr_renderer_autocreate_with_drm_fd
This function is only required because the DRM backend still needs to perform multi-GPU magic under-the-hood. Remove the wlr_ prefix to make it clear it's not a candidate for being made public.
This commit is contained in:
parent
6bf2406dbf
commit
619a975025
@ -29,7 +29,7 @@ bool init_drm_renderer(struct wlr_drm_backend *drm,
|
||||
return false;
|
||||
}
|
||||
|
||||
renderer->wlr_rend = wlr_renderer_autocreate_with_drm_fd(drm->fd);
|
||||
renderer->wlr_rend = renderer_autocreate_with_drm_fd(drm->fd);
|
||||
if (!renderer->wlr_rend) {
|
||||
wlr_log(WLR_ERROR, "Failed to create renderer");
|
||||
goto error_gbm;
|
||||
|
@ -6,7 +6,7 @@
|
||||
/**
|
||||
* Automatically select and create a renderer suitable for the DRM FD.
|
||||
*/
|
||||
struct wlr_renderer *wlr_renderer_autocreate_with_drm_fd(int drm_fd);
|
||||
struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd);
|
||||
/**
|
||||
* Bind a buffer to the renderer.
|
||||
*
|
||||
|
@ -231,7 +231,7 @@ bool wlr_renderer_init_wl_display(struct wlr_renderer *r,
|
||||
return true;
|
||||
}
|
||||
|
||||
struct wlr_renderer *wlr_renderer_autocreate_with_drm_fd(int drm_fd) {
|
||||
struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd) {
|
||||
const char *name = getenv("WLR_RENDERER");
|
||||
if (name) {
|
||||
wlr_log(WLR_INFO, "Loading user-specified renderer due to WLR_RENDERER: %s",
|
||||
@ -279,7 +279,7 @@ struct wlr_renderer *wlr_renderer_autocreate_with_drm_fd(int drm_fd) {
|
||||
struct wlr_renderer *wlr_renderer_autocreate(struct wlr_backend *backend) {
|
||||
// Note, drm_fd may be negative if unavailable
|
||||
int drm_fd = wlr_backend_get_drm_fd(backend);
|
||||
return wlr_renderer_autocreate_with_drm_fd(drm_fd);
|
||||
return renderer_autocreate_with_drm_fd(drm_fd);
|
||||
}
|
||||
|
||||
int wlr_renderer_get_drm_fd(struct wlr_renderer *r) {
|
||||
|
Loading…
Reference in New Issue
Block a user