Skip to content
This repository has been archived by the owner. It is now read-only.

8262928: Commit commandbuffer and gracefully override MTLContext #208

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -584,11 +584,17 @@ void MTLRenderQueue_CheckPreviousOp(jint op) {
jlong pSrc = NEXT_LONG(b);
jlong pDst = NEXT_LONG(b);

dstOps = (BMTLSDOps *)jlong_to_ptr(pDst);
if (mtlc != NULL) {
[mtlc.encoderManager endEncoder];
MTLCommandBufferWrapper * cbwrapper = [mtlc pullCommandBufferWrapper];
id<MTLCommandBuffer> commandbuf = [cbwrapper getCommandBuffer];
[commandbuf addCompletedHandler:^(id <MTLCommandBuffer> commandbuf) {
[cbwrapper release];
}];
[commandbuf commit];
}
mtlc = [MTLContext setSurfacesEnv:env src:pSrc dst:pDst];
dstOps = (BMTLSDOps *)jlong_to_ptr(pDst);
break;
}
case sun_java2d_pipe_BufferedOpCodes_SET_SCRATCH_SURFACE: