anv/sparse: remove useless isl_surf_get_tile_info() call

If isl_surf_get_tile_info() returned the struct instead of having it
passed as a pointer, gcc would have detected this. I can write patches
for that if we want it.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28724>
This commit is contained in:
Paulo Zanoni 2024-04-09 15:54:19 -07:00 committed by Marge Bot
parent 831da93d76
commit 2f5638cf2e

View file

@ -1025,8 +1025,6 @@ anv_sparse_bind_image_memory(struct anv_queue *queue,
image->planes[plane].primary_surface.memory_range.offset;
const struct isl_format_layout *layout =
isl_format_get_layout(surf->format);
struct isl_tile_info tile_info;
isl_surf_get_tile_info(surf, &tile_info);
sparse_debug("\n=== [%s:%d] [%s] BEGIN\n", __FILE__, __LINE__, __func__);
sparse_debug("--> mip_level:%d array_layer:%d\n",