From: Christian König Date: Tue, 12 Apr 2011 18:45:31 +0000 (+0200) Subject: [g3dvl] make resource_format param const X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3745025b28aa6142e7465f2af1387aebc99b5a70;p=mesa.git [g3dvl] make resource_format param const --- diff --git a/src/gallium/auxiliary/vl/vl_context.c b/src/gallium/auxiliary/vl/vl_context.c index ba732548732..49a9b50863c 100644 --- a/src/gallium/auxiliary/vl/vl_context.c +++ b/src/gallium/auxiliary/vl/vl_context.c @@ -199,7 +199,7 @@ vl_context_create_decoder(struct pipe_video_context *context, static struct pipe_video_buffer * vl_context_create_buffer(struct pipe_video_context *context, enum pipe_format buffer_format, - enum pipe_format resource_formats[3], + const enum pipe_format resource_formats[3], enum pipe_video_chroma_format chroma_format, unsigned width, unsigned height) { diff --git a/src/gallium/include/pipe/p_video_context.h b/src/gallium/include/pipe/p_video_context.h index 22203b66d6f..81fc2812249 100644 --- a/src/gallium/include/pipe/p_video_context.h +++ b/src/gallium/include/pipe/p_video_context.h @@ -121,7 +121,7 @@ struct pipe_video_context */ struct pipe_video_buffer *(*create_buffer)(struct pipe_video_context *context, enum pipe_format buffer_format, - enum pipe_format resource_formats[3], + const enum pipe_format resource_formats[3], enum pipe_video_chroma_format chroma_format, unsigned width, unsigned height);