mesa/st: Make st_convert_image(_from_unit) declaration match definition
Pointed out by GCC 13: ../src/mesa/state_tracker/st_atom_image.c:51:1: warning: conflicting types for ‘st_convert_image’ due to enum/integer mismatch; have ‘void(const struct st_context *, const struct gl_image_unit *, struct pipe_image_view *, enum gl_access_qualifier)’ [-Wenum-int-mismatch] 51 | st_convert_image(const struct st_context *st, const struct gl_image_unit *u, | ^~~~~~~~~~~~~~~~ In file included from ../src/mesa/state_tracker/st_atom_image.c:41: ../src/mesa/state_tracker/st_texture.h:242:1: note: previous declaration of ‘st_convert_image’ with type ‘void(const struct st_context *, const struct gl_image_unit *, struct pipe_image_view *, unsigned int)’ 242 | st_convert_image(const struct st_context *st, const struct gl_image_unit *u, | ^~~~~~~~~~~~~~~~ ../src/mesa/state_tracker/st_atom_image.c:134:1: warning: conflicting types for ‘st_convert_image_from_unit’ due to enum/integer mismatch; have ‘void(const struct st_context *, struct pipe_image_view *, GLuint, enum gl_access_qualifier)’ {aka ‘void(const struct st_context *, struct pipe_image_view *, unsigned int, enum gl_access_qualifier)’} [-Wenum-int-mismatch] 134 | st_convert_image_from_unit(const struct st_context *st, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/mesa/state_tracker/st_texture.h:246:1: note: previous declaration of ‘st_convert_image_from_unit’ with type ‘void(const struct st_context *, struct pipe_image_view *, GLuint, unsigned int)’ {aka ‘void(const struct st_context *, struct pipe_image_view *, unsigned int, unsigned int)’} 246 | st_convert_image_from_unit(const struct st_context *st, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22517>
This commit is contained in:
@@ -240,13 +240,13 @@ st_compressed_format_fallback(struct st_context *st, mesa_format format);
|
||||
|
||||
void
|
||||
st_convert_image(const struct st_context *st, const struct gl_image_unit *u,
|
||||
struct pipe_image_view *img, unsigned shader_access);
|
||||
struct pipe_image_view *img, enum gl_access_qualifier shader_access);
|
||||
|
||||
void
|
||||
st_convert_image_from_unit(const struct st_context *st,
|
||||
struct pipe_image_view *img,
|
||||
GLuint imgUnit,
|
||||
unsigned shader_access);
|
||||
enum gl_access_qualifier shader_access);
|
||||
|
||||
void
|
||||
st_convert_sampler(const struct st_context *st,
|
||||
|
Reference in New Issue
Block a user