radeonsi: fix multi plane buffers creation
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 9 Dec 2019 08:48:37 +0000 (09:48 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 10 Dec 2019 07:52:16 +0000 (08:52 +0100)
commite3e91cebcd9307654eb3535e2f6521103ec8b997
treea44ec7b992aa7ae28d864eead131338043e22367
parentff0f10866699a22216fd1a4af6cdb89c2fea10e1
radeonsi: fix multi plane buffers creation

When using 3 planes, the sequence produces this chain:
  plane0 -> plane2
This commit fixes this to produce:
  plane0 -> plane1 -> plane2

Fixes: 86e60bc2659 ("radeonsi: remove si_vid_join_surfaces and use combined planar allocations")
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2193
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_texture.c