diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2021-10-01 13:15:10 -0700 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2021-11-16 11:22:04 +0000 |
commit | f4004fde262964351f72656f396e1cca491ee955 (patch) | |
tree | 19639aa7995f34c614dc89cfe61ad5ddb88d49ed | |
parent | 68b7b4fb38e0bbdb5f84443a6a071ecd0fed7bd2 (diff) |
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: b8ef3271c870 ("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>
-rw-r--r-- | src/gallium/drivers/iris/iris_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index aee9bb6b999..588bba900f3 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -1444,7 +1444,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); } } |