iris: Fix parameters to iris_copy_region in reallocate_resource_inplace
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 1 Oct 2021 20:15:10 +0000 (13:15 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 16 Nov 2021 11:22:04 +0000 (11:22 +0000)
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>

src/gallium/drivers/iris/iris_resource.c

index aee9bb6..588bba9 100644 (file)
@@ -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);
       }
    }