mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 11:40:10 +01: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
1 changed files with 1 additions and 3 deletions
|
|
@ -492,9 +492,7 @@ pipe_buffer_copy(struct pipe_context *pipe,
|
||||||
unsigned size)
|
unsigned size)
|
||||||
{
|
{
|
||||||
struct pipe_box box;
|
struct pipe_box box;
|
||||||
/* only these fields are used */
|
u_box_1d(src_offset, size, &box);
|
||||||
box.x = (int)src_offset;
|
|
||||||
box.width = (int)size;
|
|
||||||
pipe->resource_copy_region(pipe, dst, 0, dst_offset, 0, 0, src, 0, &box);
|
pipe->resource_copy_region(pipe, dst, 0, dst_offset, 0, 0, src, 0, &box);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue