mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 01:20:17 +01:00
panfrost: change create_renderonly signature to uniformize it
Signed-off-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22144>
This commit is contained in:
parent
b5082223be
commit
6caa166ffe
3 changed files with 9 additions and 4 deletions
|
|
@ -109,7 +109,7 @@ struct pipe_screen *kmsro_drm_screen_create(int fd,
|
|||
|
||||
if (ro->gpu_fd >= 0) {
|
||||
ro->create_for_resource = renderonly_create_kms_dumb_buffer_for_resource;
|
||||
screen = panfrost_drm_screen_create_renderonly(ro);
|
||||
screen = panfrost_drm_screen_create_renderonly(ro->gpu_fd, ro, config);
|
||||
if (!screen)
|
||||
goto out_free;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,9 +28,12 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
struct pipe_screen;
|
||||
struct pipe_screen_config;
|
||||
struct renderonly;
|
||||
|
||||
struct pipe_screen *panfrost_drm_screen_create(int drmFD);
|
||||
struct pipe_screen *panfrost_drm_screen_create_renderonly(struct renderonly *ro);
|
||||
struct pipe_screen *panfrost_drm_screen_create_renderonly(int fd,
|
||||
struct renderonly *ro,
|
||||
const struct pipe_screen_config *config);
|
||||
|
||||
#endif /* __PAN_DRM_PUBLIC_H__ */
|
||||
|
|
|
|||
|
|
@ -119,9 +119,11 @@ panfrost_drm_screen_create(int fd)
|
|||
}
|
||||
|
||||
struct pipe_screen *
|
||||
panfrost_drm_screen_create_renderonly(struct renderonly *ro)
|
||||
panfrost_drm_screen_create_renderonly(int fd,
|
||||
struct renderonly *ro,
|
||||
const struct pipe_screen_config *config)
|
||||
{
|
||||
ro->create_for_resource = panfrost_create_kms_dumb_buffer_for_resource;
|
||||
return u_pipe_screen_lookup_or_create(os_dupfd_cloexec(ro->gpu_fd), NULL,
|
||||
return u_pipe_screen_lookup_or_create(os_dupfd_cloexec(fd), config,
|
||||
ro, panfrost_create_screen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue