From ebf16d30cfb7beae0f8057b7967aadd5fa3c656e Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 24 Jul 2026 11:59:27 +0300 Subject: [PATCH] test(metal): align storage fixture with GPU policy --- hal/metal/texture_copy_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hal/metal/texture_copy_test.go b/hal/metal/texture_copy_test.go index ff170e7d..7a6f4979 100644 --- a/hal/metal/texture_copy_test.go +++ b/hal/metal/texture_copy_test.go @@ -450,7 +450,7 @@ func TestCommandEncoderCopiesBetweenLayeredTextures(t *testing.T) { func TestQueueWriteTextureLayeredShapes(t *testing.T) { device, queue := newMetalTextureCopyTestDevice(t) - hasUnifiedMemory := device.hasUnifiedMemory + supportsSharedTextures := device.isAppleGPU shapes := []struct { name string @@ -471,10 +471,10 @@ func TestQueueWriteTextureLayeredShapes(t *testing.T) { for _, shape := range shapes { for _, storage := range storageModes { t.Run(shape.name+"/"+storage.name, func(t *testing.T) { - if storage.shared && !hasUnifiedMemory { - t.Skip("direct Shared-texture writes require unified memory") + if storage.shared && !supportsSharedTextures { + t.Skip("direct Shared-texture writes require an Apple GPU family") } - device.hasUnifiedMemory = storage.shared + device.isAppleGPU = storage.shared const ( width = uint32(4)