From: Henri Verbeet Date: Thu, 3 Feb 2011 20:10:50 +0000 (+0100) Subject: r300g: Make the buffer and texture vbtls static const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d17d03a8dccb4bad25211693320459420409d997;p=mesa.git r300g: Make the buffer and texture vbtls static const. --- diff --git a/src/gallium/drivers/r300/r300_screen_buffer.c b/src/gallium/drivers/r300/r300_screen_buffer.c index af6fa1048c8..85057d745e2 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 ec8608f74bd..7dd2fe326f8 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 */