zink: don't apply the map_offset when mapping a staging resource in zink_buffer_map
Some checks failed
macOS-CI / macOS-CI (dri) (push) Has been cancelled
macOS-CI / macOS-CI (xlib) (push) Has been cancelled

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:
Karol Herbst 2025-04-12 13:02:30 +02:00 committed by Marge Bot
parent fadac25b0c
commit fc7badeac0

View file

@ -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). */