Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions hal/metal/texture_copy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
Loading