From: Eric Engestrom Date: Mon, 27 Mar 2023 16:22:51 +0000 (+0100) Subject: v3d: change create_renderonly signature to uniformize it X-Git-Tag: upstream/23.3.3~10931 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed12e071aba11888b5e90e44494a3617ec1925e9;p=platform%2Fupstream%2Fmesa.git v3d: change create_renderonly signature to uniformize it Signed-off-by: Eric Engestrom Reviewed-by: Emma Anholt Part-of: --- diff --git a/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c b/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c index f046831..31d4426 100644 --- a/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c +++ b/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c @@ -133,7 +133,7 @@ struct pipe_screen *kmsro_drm_screen_create(int fd, ro->gpu_fd = drmOpenWithType("v3d", NULL, DRM_NODE_RENDER); if (ro->gpu_fd >= 0) { ro->create_for_resource = renderonly_create_kms_dumb_buffer_for_resource; - screen = v3d_drm_screen_create_renderonly(ro, config); + screen = v3d_drm_screen_create_renderonly(ro->gpu_fd, ro, config); if (!screen) goto out_free; diff --git a/src/gallium/winsys/v3d/drm/v3d_drm_public.h b/src/gallium/winsys/v3d/drm/v3d_drm_public.h index c458d73..157a319 100644 --- a/src/gallium/winsys/v3d/drm/v3d_drm_public.h +++ b/src/gallium/winsys/v3d/drm/v3d_drm_public.h @@ -30,7 +30,7 @@ struct renderonly; struct pipe_screen *v3d_drm_screen_create(int drmFD, const struct pipe_screen_config *config); -struct pipe_screen *v3d_drm_screen_create_renderonly(struct renderonly *ro, +struct pipe_screen *v3d_drm_screen_create_renderonly(int fd, struct renderonly *ro, const struct pipe_screen_config *config); #endif /* __V3D_DRM_PUBLIC_H__ */ diff --git a/src/gallium/winsys/v3d/drm/v3d_drm_winsys.c b/src/gallium/winsys/v3d/drm/v3d_drm_winsys.c index daa5910..0386cde 100644 --- a/src/gallium/winsys/v3d/drm/v3d_drm_winsys.c +++ b/src/gallium/winsys/v3d/drm/v3d_drm_winsys.c @@ -39,9 +39,9 @@ v3d_drm_screen_create(int fd, const struct pipe_screen_config *config) } struct pipe_screen * -v3d_drm_screen_create_renderonly(struct renderonly *ro, +v3d_drm_screen_create_renderonly(int fd, struct renderonly *ro, const struct pipe_screen_config *config) { - return u_pipe_screen_lookup_or_create(ro->gpu_fd, config, + return u_pipe_screen_lookup_or_create(fd, config, ro, v3d_screen_create); }