mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 10:14:13 +08:00
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:
parent
a6d9e21c23
commit
d8fb1dc7ae
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user