[g3dvl] make resource_format param const
authorChristian König <deathsimple@vodafone.de>
Tue, 12 Apr 2011 18:45:31 +0000 (20:45 +0200)
committerChristian König <deathsimple@vodafone.de>
Tue, 12 Apr 2011 18:45:31 +0000 (20:45 +0200)
src/gallium/auxiliary/vl/vl_context.c
src/gallium/include/pipe/p_video_context.h

index ba7325487326e7d4f21d94b8daef2dd9c1973f1c..49a9b50863cc41cd9a09fc636d34cb2142989dd3 100644 (file)
@@ -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)
 {
index 22203b66d6f5106118ef7f6076f8bd447d635371..81fc281224965107edbe830120173fc0e22e85d7 100644 (file)
@@ -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);