mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
gallium: dri2: Use index as plane number.
This fix wrong color when playing video under Android + virgl configuration. Fixes:2decad495f("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> (cherry picked from commit5a40e153fd)
This commit is contained in:
parent
f7d76ad80e
commit
3211308e88
1 changed files with 1 additions and 1 deletions
|
|
@ -940,7 +940,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, use, map,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue