Mesa (master): r300g: Make the buffer and texture vbtls static const.

Henri Verbeet hverbeet at kemper.freedesktop.org
Thu Feb 3 20:13:34 UTC 2011


Module: Mesa
Branch: master
Commit: d17d03a8dccb4bad25211693320459420409d997
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d17d03a8dccb4bad25211693320459420409d997

Author: Henri Verbeet <hverbeet at gmail.com>
Date:   Thu Feb  3 21:10:50 2011 +0100

r300g: Make the buffer and texture vbtls static const.

---

 src/gallium/drivers/r300/r300_screen_buffer.c |    2 +-
 src/gallium/drivers/r300/r300_texture.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_screen_buffer.c b/src/gallium/drivers/r300/r300_screen_buffer.c
index af6fa10..85057d7 100644
--- a/src/gallium/drivers/r300/r300_screen_buffer.c
+++ b/src/gallium/drivers/r300/r300_screen_buffer.c
@@ -244,7 +244,7 @@ static void r300_buffer_transfer_inline_write(struct pipe_context *pipe,
     rws->buffer_unmap(rws, rbuf->buf);
 }
 
-struct u_resource_vtbl r300_buffer_vtbl =
+static const struct u_resource_vtbl r300_buffer_vtbl =
 {
    u_default_resource_get_handle,      /* get_handle */
    r300_buffer_destroy,                /* resource_destroy */
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index ec8608f..7dd2fe3 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -763,7 +763,7 @@ static boolean r300_texture_get_handle(struct pipe_screen* screen,
                                   tex->desc.stride_in_bytes[0], whandle);
 }
 
-struct u_resource_vtbl r300_texture_vtbl =
+static const struct u_resource_vtbl r300_texture_vtbl =
 {
    r300_texture_get_handle,	      /* get_handle */
    r300_texture_destroy,	      /* resource_destroy */




More information about the mesa-commit mailing list