[PATCH xserver 06/15] dri3: use designated initializers for {s, }proc_dri3_vector
Emil Velikov
emil.l.velikov at gmail.com
Mon Apr 2 15:41:17 UTC 2018
From: Emil Velikov <emil.velikov at collabora.com>
Cc: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
Cc: Daniel Stone <daniels at collabora.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
Seems like the underscore went missing with v1.2?
---
dri3/dri3_request.c | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/dri3/dri3_request.c b/dri3/dri3_request.c
index 7ced6747c..edcd0e782 100644
--- a/dri3/dri3_request.c
+++ b/dri3/dri3_request.c
@@ -537,15 +537,15 @@ proc_dri3_buffers_from_pixmap(ClientPtr client)
static const
DispatchProc proc_dri3_vector[DRI3NumberRequests] = {
- proc_dri3_query_version, /* 0 */
- proc_dri3_open, /* 1 */
- proc_dri3_pixmap_from_buffer, /* 2 */
- proc_dri3_buffer_from_pixmap, /* 3 */
- proc_dri3_fence_from_fd, /* 4 */
- proc_dri3_fd_from_fence, /* 5 */
- proc_dri3_get_supported_modifiers, /* 6 */
- proc_dri3_pixmap_from_buffers, /* 7 */
- proc_dri3_buffers_from_pixmap, /* 8 */
+ [X_DRI3QueryVersion] = proc_dri3_query_version,
+ [X_DRI3Open] = proc_dri3_open,
+ [X_DRI3PixmapFromBuffer] = proc_dri3_pixmap_from_buffer,
+ [X_DRI3BufferFromPixmap] = proc_dri3_buffer_from_pixmap,
+ [X_DRI3FenceFromFD] = proc_dri3_fence_from_fd,
+ [X_DRI3FDFromFence] = proc_dri3_fd_from_fence,
+ [xDRI3GetSupportedModifiers] = proc_dri3_get_supported_modifiers,
+ [xDRI3PixmapFromBuffers] = proc_dri3_pixmap_from_buffers,
+ [xDRI3BuffersFromPixmap] = proc_dri3_buffers_from_pixmap,
};
int
@@ -681,15 +681,15 @@ sproc_dri3_buffers_from_pixmap(ClientPtr client)
static const
DispatchProc sproc_dri3_vector[DRI3NumberRequests] = {
- sproc_dri3_query_version, /* 0 */
- sproc_dri3_open, /* 1 */
- sproc_dri3_pixmap_from_buffer, /* 2 */
- sproc_dri3_buffer_from_pixmap, /* 3 */
- sproc_dri3_fence_from_fd, /* 4 */
- sproc_dri3_fd_from_fence, /* 5 */
- sproc_dri3_get_supported_modifiers, /* 6 */
- sproc_dri3_pixmap_from_buffers, /* 7 */
- sproc_dri3_buffers_from_pixmap, /* 8 */
+ [X_DRI3QueryVersion] = sproc_dri3_query_version,
+ [X_DRI3Open] = sproc_dri3_open,
+ [X_DRI3PixmapFromBuffer] = sproc_dri3_pixmap_from_buffer,
+ [X_DRI3BufferFromPixmap] = sproc_dri3_buffer_from_pixmap,
+ [X_DRI3FenceFromFD] = sproc_dri3_fence_from_fd,
+ [X_DRI3FDFromFence] = sproc_dri3_fd_from_fence,
+ [xDRI3GetSupportedModifiers] = sproc_dri3_get_supported_modifiers,
+ [xDRI3PixmapFromBuffers] = sproc_dri3_pixmap_from_buffers,
+ [xDRI3BuffersFromPixmap] = sproc_dri3_buffers_from_pixmap,
};
int _X_COLD
--
2.16.0
More information about the xorg-devel
mailing list