diff options
author | Marek Olšák <marek.olsak@amd.com> | 2021-05-05 14:07:18 -0400 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-05-21 17:38:04 +0000 |
commit | f7b865f1a3b4bb34a988993f6625929367063c76 (patch) | |
tree | 30ac5b58e564ed00bc2d3276f37417d1bc564615 /src/gallium/drivers/r600/r600_texture.c | |
parent | 8b2c0e725afb3fd5528d722afe34cade5f910064 (diff) |
r600: stop using u_resource_vtbl::resource_destroy
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10659>
Diffstat (limited to 'src/gallium/drivers/r600/r600_texture.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_texture.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index ffd6ecd0ad0..bd8ab3d96bb 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -574,8 +574,7 @@ static bool r600_texture_get_handle(struct pipe_screen* screen, return rscreen->ws->buffer_get_handle(rscreen->ws, res->buf, whandle); } -static void r600_texture_destroy(struct pipe_screen *screen, - struct pipe_resource *ptex) +void r600_texture_destroy(struct pipe_screen *screen, struct pipe_resource *ptex) { struct r600_texture *rtex = (struct r600_texture*)ptex; struct r600_resource *resource = &rtex->resource; @@ -1521,7 +1520,7 @@ static void r600_texture_transfer_unmap(struct pipe_context *ctx, static const struct u_resource_vtbl r600_texture_vtbl = { - r600_texture_destroy, /* resource_destroy */ + NULL, /* resource_destroy */ r600_texture_transfer_map, /* transfer_map */ r600_texture_transfer_unmap, /* transfer_unmap */ }; |