amd/common: Always initialize gfx9 mipmap offset/pitch.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 31 Dec 2019 20:28:23 +0000 (21:28 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jan 2020 11:25:51 +0000 (11:25 +0000)
commit973181c06cca3fe232c3a435abde31f2fc1b81ef
tree0db79aeba90269fbbd4863f0605e338c6c353394
parent59c4fb9d72881bc6b7b72710e6cd71926d514abe
amd/common: Always initialize gfx9 mipmap offset/pitch.

The WSI expects pitch to be meaningful even for tiled
textures.

(It is used for the pitch in modesetting and X11)

Fixes: 824bd0830e8 "radv: return the correct pitch for linear mipmaps on GFX10"
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2301
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2304
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3245>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3245>
src/amd/common/ac_surface.c
src/amd/common/ac_surface.h