mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 22:10:38 +02:00
gallium/u_threaded: fix EXPLICIT_FLUSH for flush offsets > 0
Cc: 18.3 19.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
(cherry picked from commit 4522f01d4e)
This commit is contained in:
parent
3545986962
commit
b3b0a97f69
1 changed files with 2 additions and 1 deletions
|
|
@ -1524,7 +1524,8 @@ tc_buffer_do_flush_region(struct threaded_context *tc,
|
|||
if (ttrans->staging) {
|
||||
struct pipe_box src_box;
|
||||
|
||||
u_box_1d(ttrans->offset + box->x % tc->map_buffer_alignment,
|
||||
u_box_1d(ttrans->offset + ttrans->b.box.x % tc->map_buffer_alignment +
|
||||
(box->x - ttrans->b.box.x),
|
||||
box->width, &src_box);
|
||||
|
||||
/* Copy the staging buffer into the original one. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue