summaryrefslogtreecommitdiff
path: root/glamor
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2018-04-02 16:41:12 +0100
committerAdam Jackson <ajax@redhat.com>2018-04-10 15:42:23 -0400
commit66b632bb068672f507212b00bd313b5040bf1a39 (patch)
treed22538208aa66ddbbd7a762717a5d330ff3721c1 /glamor
parentc67f2eac56518163981af59f5accb7c79bc00f6a (diff)
dri3: annotate the dri3_screen_info data as const
dri3_screen_info is the user provide dispatch. Something that we do not and should not change. When using the _ptr typecast + const the compiler barfs at us (rightfully so), so use the _rec one. [Silence a new const mismatch warning too - ajax] Fixes: 56313829886 ("dri3: Add DRI3 extension") Cc: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'glamor')
-rw-r--r--glamor/glamor_egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c
index 5a47dbd91..091d51d98 100644
--- a/glamor/glamor_egl.c
+++ b/glamor/glamor_egl.c
@@ -797,7 +797,7 @@ glamor_dri3_open_client(ClientPtr client,
return Success;
}
-static dri3_screen_info_rec glamor_dri3_info = {
+static const dri3_screen_info_rec glamor_dri3_info = {
.version = 2,
.open_client = glamor_dri3_open_client,
.pixmap_from_fds = glamor_pixmap_from_fds,