diff options
author | Henri Verbeet <[email protected]> | 2011-02-03 21:10:50 +0100 |
---|---|---|
committer | Henri Verbeet <[email protected]> | 2011-02-03 21:13:12 +0100 |
commit | d17d03a8dccb4bad25211693320459420409d997 (patch) | |
tree | 022139b722325669e11ff88d7f6fd2911bea4d58 /src/gallium | |
parent | 126e98966d5396ed251a34e3c39f11b36351a579 (diff) |
r300g: Make the buffer and texture vbtls static const.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen_buffer.c | 2 | ||||
-rw-r--r-- | 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 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 */ |