gallium: dri2: Use index as plane number.
authorLepton Wu <lepton@chromium.org>
Sat, 2 Nov 2019 06:41:29 +0000 (23:41 -0700)
committerLepton Wu <lepton@chromium.org>
Wed, 6 Nov 2019 21:58:28 +0000 (21:58 +0000)
commit5a40e153fd7df58a6419cf2e6211828d7d31cf4e
treed6495162ecae1751874262065298aa530e7cb0ea
parentc1c346f1667375e9330aa3f729b97e4a6ece0320
gallium: dri2: Use index as plane number.

This fix wrong color when playing video under Android + virgl
configuration.

Fixes: 2decad495f3 ("gallium/dri2: Support images with multiple planes for modifiers")
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Lepton Wu <lepton@chromium.org>
src/gallium/state_trackers/dri/dri2.c