mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
zink: don't apply the map_offset when mapping a staging resource in zink_buffer_map
Fixes regressions in the OpenCL CTS allocation tests.
Fixes: 5d46e2bf3c ("zink: implement unsynchronized staging uploads for buffers")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34494>
This commit is contained in:
parent
fadac25b0c
commit
fc7badeac0
1 changed files with 1 additions and 0 deletions
|
|
@ -2376,6 +2376,7 @@ zink_buffer_map(struct pipe_context *pctx,
|
|||
}
|
||||
res = zink_resource(trans->staging_res);
|
||||
usage |= PIPE_MAP_UNSYNCHRONIZED;
|
||||
map_offset = trans->offset;
|
||||
ptr = ((uint8_t *)ptr);
|
||||
} else {
|
||||
/* At this point, the buffer is always idle (we checked it above). */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue