Skip to content

Commit 819caa4

Browse files
committed
qemu: fix Metal verification error
1 parent 97566f9 commit 819caa4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

patches/qemu-10.0.2-utm.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4300,7 +4300,7 @@ index f515165335..6a97bdc67a 100644
43004300
--
43014301
2.41.0
43024302

4303-
From fceee68a7783f78b1f55cd2075155ee1e69385cc Mon Sep 17 00:00:00 2001
4303+
From fb99e056ac794d77e2c7c00afc50d53205099fc1 Mon Sep 17 00:00:00 2001
43044304
From: osy <osy@turing.llc>
43054305
Date: Wed, 7 Jan 2026 12:18:14 -0800
43064306
Subject: [PATCH 9/9] ui/spice-display: support MTLTexture scanout to IOSurface
@@ -4438,7 +4438,7 @@ index 8acb9c0ef0..fffa0da90a 100644
44384438
if gio.found()
44394439
diff --git a/ui/spice-display-metal.m b/ui/spice-display-metal.m
44404440
new file mode 100644
4441-
index 0000000000..978dfeb98e
4441+
index 0000000000..29e58d9461
44424442
--- /dev/null
44434443
+++ b/ui/spice-display-metal.m
44444444
@@ -0,0 +1,166 @@
@@ -4532,7 +4532,7 @@ index 0000000000..978dfeb98e
45324532
+ MTLOrigin origin = MTLOriginMake(self.scanoutRect.origin.x + rect.origin.x,
45334533
+ self.scanoutRect.origin.y + rect.origin.y,
45344534
+ 0);
4535-
+ MTLSize size = MTLSizeMake(rect.size.width, rect.size.height, 0);
4535+
+ MTLSize size = MTLSizeMake(rect.size.width, rect.size.height, 1);
45364536
+
45374537
+ [blit copyFromTexture:self.scanoutTexture
45384538
+ sourceSlice:0
@@ -4609,7 +4609,7 @@ index 0000000000..978dfeb98e
46094609
+ }];
46104610
+}
46114611
diff --git a/ui/spice-display.c b/ui/spice-display.c
4612-
index 824e645d72..6ccc007ef0 100644
4612+
index 97a915a7ee..976f68710a 100644
46134613
--- a/ui/spice-display.c
46144614
+++ b/ui/spice-display.c
46154615
@@ -939,6 +939,10 @@ static bool spice_iosurface_create(SimpleSpiceDisplay *ssd, int width, int heigh
@@ -4763,7 +4763,7 @@ index 824e645d72..6ccc007ef0 100644
47634763

47644764
trace_qemu_spice_gl_update(ssd->qxl.id, w, h, x, y);
47654765
--
4766-
2.50.1 (Apple Git-155)
4766+
2.41.0
47674767

47684768
From 27e45bc5d22b61a0b1f7094595c8eeb02d1258ec Mon Sep 17 00:00:00 2001
47694769
From: osy <osy@turing.llc>

0 commit comments

Comments
 (0)