OSDN Git Service

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)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 10 Dec 2019 17:14:34 +0000 (09:14 -0800)
commit01d53f7ac0a0ccbb0fe76177a05f7a3a53d99be8
tree3df903e59e0f93e535e6abac198c4b2e830838a1
parent166a3ae3c894d0ee2b660b7bbf2d6eee47eaa6ff
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>
(cherry picked from commit e3e91cebcd9307654eb3535e2f6521103ec8b997)
src/gallium/drivers/radeonsi/si_texture.c