Mesa (main): iris: Fix parameters to iris_copy_region in reallocate_resource_inplace

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 16 11:35:53 UTC 2021


Module: Mesa
Branch: main
Commit: f4004fde262964351f72656f396e1cca491ee955
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f4004fde262964351f72656f396e1cca491ee955

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Fri Oct  1 13:15:10 2021 -0700

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 at intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13815>

---

 src/gallium/drivers/iris/iris_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
       }
    }



More information about the mesa-commit mailing list