mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
dri3: annotate fds/strides/offsets arrays as const
It makes it perfectly clear that we should not be modifying them.
Should help highlight issues like the one fixed with previous commit.
Fixes: cef12efc15 ("glamor: Implement GetSupportedModifiers")
Cc: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Cc: Daniel Stone <daniels@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
committed by
Adam Jackson
parent
877fa0c664
commit
9a159f37e0
@@ -79,8 +79,10 @@ int
|
||||
dri3_open(ClientPtr client, ScreenPtr screen, RRProviderPtr provider, int *fd);
|
||||
|
||||
int
|
||||
dri3_pixmap_from_fds(PixmapPtr *ppixmap, ScreenPtr screen, CARD8 num_fds, int *fds,
|
||||
CARD16 width, CARD16 height, CARD32 *strides, CARD32 *offsets,
|
||||
dri3_pixmap_from_fds(PixmapPtr *ppixmap, ScreenPtr screen,
|
||||
CARD8 num_fds, const int *fds,
|
||||
CARD16 width, CARD16 height,
|
||||
const CARD32 *strides, const CARD32 *offsets,
|
||||
CARD8 depth, CARD8 bpp, CARD64 modifier);
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user