mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-01 04:28:48 +00:00
rutabaga_gfx: cross_domain: fix bug in channel reporting
wayland_service cannot startup without this fix because crosvm incorrectly only reports the last supported channel (CROSS_DOMAIN_CHANNEL_TYPE_CAMERA = 0x4) instead of all (CROSS_DOMAIN_CHANNEL_TYPE_WAYLAND | CROSS_DOMAIN_CHANNEL_TYPE_CAMERA = 0x6). BUG=b:322173539 TEST=ARCVM reports caps.supported_channels = 0x6 instead of 0x4 Change-Id: I84928176beecc051d407017d204fbe0936e1dc26 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5717781 Commit-Queue: Ryan Neph <ryanneph@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Auto-Submit: Ryan Neph <ryanneph@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
ee140e87de
commit
cb6d98cb3b
1 changed files with 1 additions and 1 deletions
|
@ -894,7 +894,7 @@ impl RutabagaComponent for CrossDomain {
|
||||||
let mut caps: CrossDomainCapabilities = Default::default();
|
let mut caps: CrossDomainCapabilities = Default::default();
|
||||||
if let Some(ref channels) = self.channels {
|
if let Some(ref channels) = self.channels {
|
||||||
for channel in channels {
|
for channel in channels {
|
||||||
caps.supported_channels = 1 << channel.channel_type;
|
caps.supported_channels |= 1 << channel.channel_type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue