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:
@@ -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). */
|
||||
|
||||
Reference in New Issue
Block a user