gallium/util: Fix pipe_buffer_copy

Some of the fields that were being left uninitialized were actually
being used later.

Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25714>
This commit is contained in:
Tomeu Vizoso 2023-10-31 14:40:04 +01:00 committed by Marge Bot
parent a6d9e21c23
commit d8fb1dc7ae

View File

@ -492,9 +492,7 @@ pipe_buffer_copy(struct pipe_context *pipe,
unsigned size)
{
struct pipe_box box;
/* only these fields are used */
box.x = (int)src_offset;
box.width = (int)size;
u_box_1d(src_offset, size, &box);
pipe->resource_copy_region(pipe, dst, 0, dst_offset, 0, 0, src, 0, &box);
}