From ea2c7f20f2f96e15570f7e9416fb6c826f809747 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Wed, 13 Mar 2019 09:45:18 +0000 Subject: [PATCH] TextureMTL: Use managed storage mode for IOSurfaces BUG=dawn:117 Change-Id: Ief914b1e03397080ab501fa5f9059725f8c261b6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/5420 Reviewed-by: Hao Li Commit-Queue: Corentin Wallez --- src/dawn_native/metal/TextureMTL.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dawn_native/metal/TextureMTL.mm b/src/dawn_native/metal/TextureMTL.mm index 607b00e1a6..75d6b69ed6 100644 --- a/src/dawn_native/metal/TextureMTL.mm +++ b/src/dawn_native/metal/TextureMTL.mm @@ -211,6 +211,7 @@ namespace dawn_native { namespace metal { uint32_t plane) : TextureBase(device, descriptor) { MTLTextureDescriptor* mtlDesc = CreateMetalTextureDescriptor(descriptor); + mtlDesc.storageMode = MTLStorageModeManaged; mMtlTexture = [device->GetMTLDevice() newTextureWithDescriptor:mtlDesc iosurface:ioSurface plane:plane];