OSDN Git Service

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)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 7 Jan 2020 17:20:49 +0000 (09:20 -0800)
commit3d43ce1ca1d326d7a58c166ebcb3eed519683795
tree70c00a19d3479e29ffec86b11855ed425460981f
parent980ac74d5e1023c631fb273348ec5c47f469662a
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>
(cherry picked from commit 824bd0830e811a7b6347bbd5c30e0a76bc7daf60)
src/amd/common/ac_surface.c
src/amd/common/ac_surface.h
src/amd/vulkan/radv_image.c