radv: return the correct pitch for linear mipmaps on GFX10
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 30 Dec 2019 12:47:30 +0000 (13:47 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 30 Dec 2019 13:17:45 +0000 (14:17 +0100)
commit824bd0830e811a7b6347bbd5c30e0a76bc7daf60
treef31c697dd33a6d0c1d00155a7b12a3997b06b72b
parentb318bc2072d42a58b491dac3aa6118012d92e5bb
radv: return the correct pitch for linear mipmaps on GFX10

On GFX9, the pitch of a level is always the pitch of the entire image
but not on GFX10.

This fixes graphics glithes with Halo - The Master Chief Collection.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2188
CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_surface.c
src/amd/common/ac_surface.h
src/amd/vulkan/radv_image.c