r300g: Make the buffer and texture vbtls static const.
authorHenri Verbeet <hverbeet@gmail.com>
Thu, 3 Feb 2011 20:10:50 +0000 (21:10 +0100)
committerHenri Verbeet <hverbeet@gmail.com>
Thu, 3 Feb 2011 20:13:12 +0000 (21:13 +0100)
src/gallium/drivers/r300/r300_screen_buffer.c
src/gallium/drivers/r300/r300_texture.c

index af6fa1048c8cb44a41b7d751fc32a7835d8d37ea..85057d745e2b5f5b59ee904c6e34921d0e41e601 100644 (file)
@@ -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 */
index ec8608f74bd35c18288e1ec7b31ddc651af7a263..7dd2fe326f805c18d79be485f96aa8c92f1f6016 100644 (file)
@@ -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 */