iris: Fix parameters to iris_copy_region in reallocate_resource_inplace

We had accidentally passed <x, y, z, l> instead of <l, x, y, z>.

Fixes: b8ef3271c8 ("iris: Move suballocated resources to a dedicated allocation on export")
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13815>
(cherry picked from commit f4004fde26)
This commit is contained in:
Kenneth Graunke 2021-10-01 13:15:10 -07:00 committed by Eric Engestrom
parent 6e1de95860
commit ca307d8cbf
2 changed files with 2 additions and 2 deletions

View file

@ -409,7 +409,7 @@
"description": "iris: Fix parameters to iris_copy_region in reallocate_resource_inplace",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "b8ef3271c870a4e8c0d641cbe4114f827015b75b"
},

View file

@ -1446,7 +1446,7 @@ iris_reallocate_resource_inplace(struct iris_context *ice,
.depth = util_num_layers(&templ, l),
};
iris_copy_region(&ice->blorp, batch, &new_res->base.b, 0, 0, 0, l,
iris_copy_region(&ice->blorp, batch, &new_res->base.b, l, 0, 0, 0,
&old_res->base.b, l, &box);
}
}