Skip to contentSkip to conversation

virtio-gpu-rutabaga: make sure ctx_ids match

PATCH New Gurchetan Singh 1 participant 1 message Oct 12

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-gpu-rutabaga: make sure ctx_ids match

The ctx_ids need to match as well as the ring ids for proper signaling.

v2: add r-b tags

Fixes 1dcc6adbc168 ("gfxstream + rutabaga: add initial support for gfxstream")
---
 hw/display/virtio-gpu-rutabaga.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
hw/display/virtio-gpu-rutabaga.c +2 -1
index 3aafa4dc66..edf7b62703 100644
@@ -902,7 +902,8 @@ virtio_gpu_rutabaga_aio_cb(void *opaque)
         }
 
         if (signaled_ctx_specific &&
-           (cmd->cmd_hdr.ring_idx != fence_data.ring_idx)) {
+           ((cmd->cmd_hdr.ctx_id != fence_data.ctx_id) ||
+           (cmd->cmd_hdr.ring_idx != fence_data.ring_idx))) {
             continue;
         }
 
Signature · 1 line
2.55.0