diff options
author | Lepton Wu <[email protected]> | 2019-11-01 23:41:29 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-11-13 11:10:13 -0800 |
commit | 2b89e68a2e4cab5309e81691d991d246b4e77b23 (patch) | |
tree | c05c93a472f949194165409051934fe3b9ae8211 /src/gallium/state_trackers | |
parent | 9cbffed5d05e3ace0ceab9614bbcacfeb55a1636 (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Signed-off-by: Lepton Wu <[email protected]>
(cherry picked from commit 5a40e153fd7df58a6419cf2e6211828d7d31cf4e)
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/dri2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index 2522d8e4019..755396a60be 100644 --- a/src/gallium/state_trackers/dri/dri2.c +++ b/src/gallium/state_trackers/dri/dri2.c @@ -907,7 +907,7 @@ dri2_create_image_from_fd(__DRIscreen *_screen, whandles[i].stride = (unsigned)strides[index]; whandles[i].offset = (unsigned)offsets[index]; whandles[i].modifier = modifier; - whandles[i].plane = i; + whandles[i].plane = index; } img = dri2_create_image_from_winsys(_screen, width, height, map, |