summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorNeil Roberts <nroberts@igalia.com>2021-05-31 16:32:57 +0200
committerMarge Bot <eric+marge@anholt.net>2021-05-31 14:58:12 +0000
commit5a4384c2bc4122de29b64c0f9ef39d3477969696 (patch)
treeefe52a978848f4552fae8bce0ef3c7c4ed814393 /src/gallium/winsys
parent9ff54d408ba872da44158869f363f73cddbb0f63 (diff)
kmsro: Fix confusing comma expression
It looks like this was a copy-and-paste mistake in 827e0d6654a2 where the initialiser was moved from being a struct initialiser to a standalone statement. Some of them were fixed with an unrelated change in 187218395d7c but not all of them. This shouldn’t make any practical difference to the compiled code. Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11090>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c b/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c
index 790ed7d69e9..ec927986c80 100644
--- a/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c
+++ b/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c
@@ -103,7 +103,7 @@ struct pipe_screen *kmsro_drm_screen_create(int fd,
ro->gpu_fd = drmOpenWithType("panfrost", NULL, DRM_NODE_RENDER);
if (ro->gpu_fd >= 0) {
- ro->create_for_resource = renderonly_create_kms_dumb_buffer_for_resource,
+ ro->create_for_resource = renderonly_create_kms_dumb_buffer_for_resource;
screen = panfrost_drm_screen_create_renderonly(ro);
if (!screen)
goto out_free;
@@ -115,7 +115,7 @@ struct pipe_screen *kmsro_drm_screen_create(int fd,
#if defined(GALLIUM_LIMA)
ro->gpu_fd = drmOpenWithType("lima", NULL, DRM_NODE_RENDER);
if (ro->gpu_fd >= 0) {
- ro->create_for_resource = renderonly_create_kms_dumb_buffer_for_resource,
+ ro->create_for_resource = renderonly_create_kms_dumb_buffer_for_resource;
screen = lima_drm_screen_create_renderonly(ro);
if (!screen)
goto out_free;
@@ -127,7 +127,7 @@ struct pipe_screen *kmsro_drm_screen_create(int fd,
#if defined(GALLIUM_V3D)
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,
+ ro->create_for_resource = renderonly_create_kms_dumb_buffer_for_resource;
screen = v3d_drm_screen_create_renderonly(ro, config);
if (!screen)
goto out_free;