mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 16:50:13 +01:00
zink: propagate valid buffer range to real buffer when mapping staging
cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30107>
This commit is contained in:
parent
7231eef630
commit
fa210726b6
1 changed files with 5 additions and 1 deletions
|
|
@ -2434,9 +2434,13 @@ overwrite:
|
|||
}
|
||||
}
|
||||
trans->base.b.usage = usage;
|
||||
if (usage & PIPE_MAP_WRITE)
|
||||
if (usage & PIPE_MAP_WRITE) {
|
||||
util_range_add(&res->base.b, &res->valid_buffer_range, box->x, box->x + box->width);
|
||||
|
||||
struct zink_resource *orig_res = zink_resource(trans->base.b.resource);
|
||||
util_range_add(&orig_res->base.b, &orig_res->valid_buffer_range, box->x, box->x + box->width);
|
||||
}
|
||||
|
||||
success:
|
||||
/* ensure the copy context gets unlocked */
|
||||
if (ctx == screen->copy_context)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue