summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/softpipe/sp_tile_cache.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 01:57:18 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 01:57:18 +0000
commitb24b5b9049e889ee4eb39b565bcc8d48bd45ab48 (patch)
tree658ca4e6b41655f49463c85edbaeda48979c394c /lib/mesa/src/gallium/drivers/softpipe/sp_tile_cache.c
parent57768bbb154c2879d34ec20e401b19472e77aaf7 (diff)
Import Mesa 21.3.7
Diffstat (limited to 'lib/mesa/src/gallium/drivers/softpipe/sp_tile_cache.c')
-rw-r--r--lib/mesa/src/gallium/drivers/softpipe/sp_tile_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mesa/src/gallium/drivers/softpipe/sp_tile_cache.c b/lib/mesa/src/gallium/drivers/softpipe/sp_tile_cache.c
index 81121d49f..b185320a3 100644
--- a/lib/mesa/src/gallium/drivers/softpipe/sp_tile_cache.c
+++ b/lib/mesa/src/gallium/drivers/softpipe/sp_tile_cache.c
@@ -149,7 +149,7 @@ sp_destroy_tile_cache(struct softpipe_tile_cache *tc)
int i;
for (i = 0; i < tc->num_maps; i++)
if (tc->transfer[i]) {
- tc->pipe->transfer_unmap(tc->pipe, tc->transfer[i]);
+ tc->pipe->texture_unmap(tc->pipe, tc->transfer[i]);
}
FREE(tc->transfer);
FREE(tc->transfer_map);
@@ -176,7 +176,7 @@ sp_tile_cache_set_surface(struct softpipe_tile_cache *tc,
return;
for (i = 0; i < tc->num_maps; i++) {
- pipe->transfer_unmap(pipe, tc->transfer[i]);
+ pipe->texture_unmap(pipe, tc->transfer[i]);
tc->transfer[i] = NULL;
tc->transfer_map[i] = NULL;
}
@@ -200,7 +200,7 @@ sp_tile_cache_set_surface(struct softpipe_tile_cache *tc,
if (ps->texture->target != PIPE_BUFFER) {
for (i = 0; i < tc->num_maps; i++) {
- tc->transfer_map[i] = pipe_transfer_map(pipe, ps->texture,
+ tc->transfer_map[i] = pipe_texture_map(pipe, ps->texture,
ps->u.tex.level, ps->u.tex.first_layer + i,
PIPE_MAP_READ_WRITE |
PIPE_MAP_UNSYNCHRONIZED,