summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2021-05-05 15:27:46 -0400
committerMarge Bot <eric+marge@anholt.net>2021-05-21 17:38:04 +0000
commiteb74f977693221eb1419f4827f549d48251f22da (patch)
tree2c0f4dba8fef34f5c85deea9cd95d0c9a10acc4f /src/gallium/winsys
parent9effc49569edde6528c30d1a8d10018012c8c6c7 (diff)
gallium: split transfer_(un)map into buffer_(un)map and texture_(un)map
The u_resource_vtbl indirection is going to be removed. Reviewed-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/winsys')
-rw-r--r--src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c b/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c
index 529d40d153a..a61a4458f28 100644
--- a/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c
+++ b/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c
@@ -105,7 +105,7 @@ wsw_dt_get_stride(struct wrapper_sw_displaytarget *wdt, unsigned *stride)
struct pipe_transfer *tr;
void *map;
- map = pipe_transfer_map(pipe, tex, 0, 0,
+ map = pipe_texture_map(pipe, tex, 0, 0,
PIPE_MAP_READ_WRITE,
0, 0, wdt->tex->width0, wdt->tex->height0, &tr);
if (!map)
@@ -114,7 +114,7 @@ wsw_dt_get_stride(struct wrapper_sw_displaytarget *wdt, unsigned *stride)
*stride = tr->stride;
wdt->stride = tr->stride;
- pipe->transfer_unmap(pipe, tr);
+ pipe->texture_unmap(pipe, tr);
return true;
}
@@ -221,7 +221,7 @@ wsw_dt_map(struct sw_winsys *ws,
assert(!wdt->transfer);
- ptr = pipe_transfer_map(pipe, tex, 0, 0,
+ ptr = pipe_texture_map(pipe, tex, 0, 0,
PIPE_MAP_READ_WRITE,
0, 0, wdt->tex->width0, wdt->tex->height0, &tr);
if (!ptr)
@@ -239,7 +239,7 @@ wsw_dt_map(struct sw_winsys *ws,
return wdt->ptr;
err:
- pipe->transfer_unmap(pipe, tr);
+ pipe->texture_unmap(pipe, tr);
return NULL;
}
@@ -257,7 +257,7 @@ wsw_dt_unmap(struct sw_winsys *ws,
if (wdt->map_count)
return;
- pipe->transfer_unmap(pipe, wdt->transfer);
+ pipe->texture_unmap(pipe, wdt->transfer);
pipe->flush(pipe, NULL, 0);
wdt->transfer = NULL;
}