Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8261646: Crash in MTLBlitLoops when Metal API Validation enabled
Co-authored-by: Jayathirth D V <jdv@openjdk.org>
  • Loading branch information
Alexey Ushakov and jayathirthrao committed Feb 19, 2021
1 parent 495aeb4 commit c2a26224d99ea99d7c8b071717d81114720d93ac
Showing 1 changed file with 8 additions and 0 deletions.
@@ -214,6 +214,14 @@ void drawTex2Tex(MTLContext *mtlc,
toTexture:dest
destinationSlice:0 destinationLevel:0 destinationOrigin:MTLOriginMake(dx1, dy1, 0)];
[blitEncoder endEncoding];
[mtlc.encoderManager endEncoder];

MTLCommandBufferWrapper * cbwrapper = [mtlc pullCommandBufferWrapper];
id<MTLCommandBuffer> commandbuf = [cbwrapper getCommandBuffer];
[commandbuf addCompletedHandler:^(id <MTLCommandBuffer> commandbuf) {
[cbwrapper release];
}];
[commandbuf commit];
}
}

0 comments on commit c2a2622

Please sign in to comment.