Change log priority for not implemented Opcodes and add logging for opcode name metal-prototype-branch
authorjdv
Fri, 16 Aug 2019 16:07:33 +0530
branchmetal-prototype-branch
changeset 57775 0a00586de2fd
parent 57719 328d81bbff39
child 57820 3adf32e09b76
Change log priority for not implemented Opcodes and add logging for opcode name
src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLBlitLoops.m
src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLBufImgOps.m
src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLContext.m
src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLMaskBlit.m
src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLMaskFill.m
src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLPaints.m
src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLRenderQueue.m
src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLRenderer.m
src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLSurfaceData.m
--- a/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLBlitLoops.m	Tue Aug 13 11:02:18 2019 +0530
+++ b/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLBlitLoops.m	Fri Aug 16 16:07:33 2019 +0530
@@ -107,7 +107,7 @@
                         jdouble dx1, jdouble dy1, jdouble dx2, jdouble dy2)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLBlitSurfaceToSurface -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLBlitSurfaceToSurface -- :TODO");
 }
 
 static void drawTex2Tex(MTLContext *mtlc,
@@ -235,7 +235,7 @@
                            jdouble dx1, jdouble dy1, jdouble dx2, jdouble dy2)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLBlitToSurfaceViaTexture -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLBlitToSurfaceViaTexture -- :TODO");
 }
 
 /**
@@ -257,7 +257,7 @@
                    jint dx1, jint dy1, jint dx2, jint dy2)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLBlitSwToTexture -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLBlitSwToTexture -- :TODO");
 }
 
 /**
@@ -466,7 +466,7 @@
                              jint width, jint height)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLBlitLoops_SurfaceToSwBlit -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLBlitLoops_SurfaceToSwBlit -- :TODO");
 }
 
 void
@@ -476,7 +476,7 @@
                       jint dx, jint dy)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLBlitLoops_CopyArea -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLBlitLoops_CopyArea -- :TODO");
 }
 
 #endif /* !HEADLESS */
--- a/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLBufImgOps.m	Tue Aug 13 11:02:18 2019 +0530
+++ b/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLBufImgOps.m	Fri Aug 16 16:07:33 2019 +0530
@@ -141,7 +141,7 @@
                               unsigned char *kernel)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLBufImgOps_EnableConvolveOp -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLBufImgOps_EnableConvolveOp -- :TODO");
 
 }
 
@@ -149,7 +149,7 @@
 MTLBufImgOps_DisableConvolveOp(MTLContext *mtlc)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLBufImgOps_DisableConvolveOp -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLBufImgOps_DisableConvolveOp -- :TODO");
 }
 
 /**************************** RescaleOp support *****************************/
@@ -234,13 +234,14 @@
                              unsigned char *offsets)
 {
     //TODO
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLBufImgOps_EnableRescaleOp -- :TODO");
 }
 
 void
 MTLBufImgOps_DisableRescaleOp(MTLContext *mtlc)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLBufImgOps_DisableRescaleOp -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLBufImgOps_DisableRescaleOp -- :TODO");
     RETURN_IF_NULL(mtlc);
 }
 
@@ -363,14 +364,14 @@
                             void *tableValues)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLBufImgOps_EnableLookupOp -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLBufImgOps_EnableLookupOp -- :TODO");
 }
 
 void
 MTLBufImgOps_DisableLookupOp(MTLContext *mtlc)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLBufImgOps_DisableLookupOp -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLBufImgOps_DisableLookupOp -- :TODO");
 }
 
 #endif /* !HEADLESS */
--- a/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLContext.m	Tue Aug 13 11:02:18 2019 +0530
+++ b/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLContext.m	Fri Aug 16 16:07:33 2019 +0530
@@ -224,17 +224,17 @@
 
 - (void)beginShapeClip {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLContext.beginShapeClip -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLContext.beginShapeClip -- :TODO");
 }
 
 - (void)endShapeClip {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLContext.endShapeClip  -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLContext.endShapeClip  -- :TODO");
 }
 
 - (void)resetComposite {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLContext_ResetComposite  -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLContext_ResetComposite  -- :TODO");
 }
 
 - (void)setAlphaCompositeRule:(jint)rule extraAlpha:(jfloat)_extraAlpha
@@ -248,7 +248,7 @@
 
 - (void)setXorComposite:(jint)xp {
     //TODO
-    J2dTraceLn1(J2D_TRACE_INFO,
+    J2dTraceLn1(J2D_TRACE_ERROR,
                 "MTLContext.setXorComposite: xorPixel=%08x -- :TODO", xp);
 }
 
--- a/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLMaskBlit.m	Tue Aug 13 11:02:18 2019 +0530
+++ b/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLMaskBlit.m	Fri Aug 16 16:07:33 2019 +0530
@@ -44,7 +44,7 @@
                      void *pPixels)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLMaskBlit_MaskBlit -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLMaskBlit_MaskBlit -- :TODO");
 
     if (width <= 0 || height <= 0) {
         J2dTraceLn(J2D_TRACE_WARNING,
--- a/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLMaskFill.m	Tue Aug 13 11:02:18 2019 +0530
+++ b/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLMaskFill.m	Fri Aug 16 16:07:33 2019 +0530
@@ -90,7 +90,7 @@
                      unsigned char *pMask)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLMaskFill_MaskFill -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLMaskFill_MaskFill -- :TODO");
 }
 
 JNIEXPORT void JNICALL
--- a/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLPaints.m	Tue Aug 13 11:02:18 2019 +0530
+++ b/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLPaints.m	Fri Aug 16 16:07:33 2019 +0530
@@ -40,7 +40,7 @@
 MTLPaints_ResetPaint(MTLContext *mtlc)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLPaints_ResetPaint -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLPaints_ResetPaint -- :TODO");
 }
 
 void
@@ -73,7 +73,7 @@
                           jdouble yp0, jdouble yp1, jdouble yp3)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLPaints_SetTexturePaint -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLPaints_SetTexturePaint -- :TODO");
 }
 
 /****************** Shared MultipleGradientPaint support ********************/
@@ -373,7 +373,7 @@
                                  void *fractions, void *pixels)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLPaints_SetLinearGradientPaint -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLPaints_SetLinearGradientPaint -- :TODO");
 
 }
 
@@ -454,7 +454,7 @@
                                  void *fractions, void *pixels)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLPaints_SetRadialGradientPaint -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLPaints_SetRadialGradientPaint -- :TODO");
 
 }
 
--- a/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLRenderQueue.m	Tue Aug 13 11:02:18 2019 +0530
+++ b/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLRenderQueue.m	Fri Aug 16 16:07:33 2019 +0530
@@ -137,6 +137,272 @@
     return JNI_FALSE;
 }
 
+// TODO : Debug logic added for opcode verification,
+// should be removed later.
+static char *getOpcodeString(jint opcode) {
+    static char opName[30];
+    switch (opcode) {
+        case sun_java2d_pipe_BufferedOpCodes_DRAW_LINE:
+            {
+                strcpy(opName, "DRAW_LINE");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DRAW_RECT:
+            {
+                strcpy(opName, "DRAW_RECT");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DRAW_POLY:
+            {
+                strcpy(opName, "DRAW_POLY");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DRAW_PIXEL:
+            {
+                strcpy(opName, "DRAW_PIXEL");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DRAW_SCANLINES:
+            {
+                strcpy(opName, "DRAW_SCANLINES");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DRAW_PARALLELOGRAM:
+            {
+                strcpy(opName, "DRAW_PARALLELOGRAM");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DRAW_AAPARALLELOGRAM:
+            {
+                strcpy(opName, "DRAW_AAPARALLELOGRAM");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_FILL_RECT:
+            {
+                strcpy(opName, "FILL_RECT");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_FILL_SPANS:
+            {
+                strcpy(opName, "FILL_SPANS");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_FILL_PARALLELOGRAM:
+            {
+                strcpy(opName, "FILL_PARALLELOGRAM");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_FILL_AAPARALLELOGRAM:
+            {
+                strcpy(opName, "FILL_AAPARALLELOGRAM");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DRAW_GLYPH_LIST:
+            {
+                strcpy(opName, "DRAW_GLYPH_LIST");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_COPY_AREA:
+            {
+                strcpy(opName, "COPY_AREA");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_BLIT:
+            {
+                strcpy(opName, "BLIT");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SURFACE_TO_SW_BLIT:
+            {
+                strcpy(opName, "SURFACE_TO_SW_BLIT");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_MASK_FILL:
+            {
+                strcpy(opName, "MASK_FILL");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_MASK_BLIT:
+            {
+
+                strcpy(opName, "MASK_BLIT");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_RECT_CLIP:
+            {
+                strcpy(opName, "SET_RECT_CLIP");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_BEGIN_SHAPE_CLIP:
+            {
+                strcpy(opName, "BEGIN_SHAPE_CLIP");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_SHAPE_CLIP_SPANS:
+            {
+                strcpy(opName, "SET_SHAPE_CLIP_SPANS");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_END_SHAPE_CLIP:
+            {
+                strcpy(opName, "END_SHAPE_CLIP");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_RESET_CLIP:
+            {
+                strcpy(opName, "RESET_CLIP");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_ALPHA_COMPOSITE:
+            {
+                strcpy(opName, "SET_ALPHA_COMPOSITE");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_XOR_COMPOSITE:
+            {
+                strcpy(opName, "SET_XOR_COMPOSITE");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_RESET_COMPOSITE:
+            {
+                strcpy(opName, "RESET_COMPOSITE");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_TRANSFORM:
+            {
+                strcpy(opName, "SET_TRANSFORM");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_RESET_TRANSFORM:
+            {
+                strcpy(opName, "RESET_TRANSFORM");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_SURFACES:
+            {
+
+                strcpy(opName, "SET_SURFACES");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_SCRATCH_SURFACE:
+            {
+                strcpy(opName, "SET_SCRATCH_SURFACE");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_FLUSH_SURFACE:
+            {
+                strcpy(opName, "FLUSH_SURFACE");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DISPOSE_SURFACE:
+            {
+                strcpy(opName, "DISPOSE_SURFACE");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DISPOSE_CONFIG:
+            {
+                strcpy(opName, "DISPOSE_CONFIG");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_INVALIDATE_CONTEXT:
+            {
+                strcpy(opName, "INVALIDATE_CONTEXT");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SAVE_STATE:
+            {
+                strcpy(opName, "SAVE_STATE");
+
+            }
+            break;
+
+        case sun_java2d_pipe_BufferedOpCodes_RESTORE_STATE:
+            {
+                strcpy(opName, "RESTORE_STATE");
+
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SYNC:
+            {
+                strcpy(opName, "SYNC");
+
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SWAP_BUFFERS:
+            {
+                strcpy(opName, "SWAP_BUFFERS");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_NOOP:
+            strcpy(opName, "NOOP");
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_RESET_PAINT:
+            {
+                strcpy(opName, "RESET_PAINT");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_COLOR:
+            {
+                strcpy(opName, "SET_COLOR");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_GRADIENT_PAINT:
+            {
+                strcpy(opName, "SET_GRADIENT_PAINT");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_LINEAR_GRADIENT_PAINT:
+            {
+                strcpy(opName, "SET_LINEAR_GRADIENT_PAINT");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_RADIAL_GRADIENT_PAINT:
+            {
+                strcpy(opName, "SET_RADIAL_GRADIENT_PAINT");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_SET_TEXTURE_PAINT:
+            {
+                strcpy(opName, "SET_TEXTURE_PAINT");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_ENABLE_CONVOLVE_OP:
+            {
+                strcpy(opName, "ENABLE_CONVOLVE_OP");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DISABLE_CONVOLVE_OP:
+            {
+                strcpy(opName, "DISABLE_CONVOLVE_OP");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_ENABLE_RESCALE_OP:
+            {
+                strcpy(opName, "ENABLE_RESCALE_OP");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DISABLE_RESCALE_OP:
+            {
+                 strcpy(opName, "DISABLE_RESCALE_OP");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_ENABLE_LOOKUP_OP:
+            {
+                strcpy(opName, "ENABLE_LOOKUP_OP");
+            }
+            break;
+        case sun_java2d_pipe_BufferedOpCodes_DISABLE_LOOKUP_OP:
+            {
+                strcpy(opName, "DISABLE_LOOKUP_OP");
+            }
+            break;
+        default:
+            strcpy(opName, "UNKNOWN");
+            break;
+        }
+    return opName;
+}
+
 JNIEXPORT void JNICALL
 Java_sun_java2d_metal_MTLRenderQueue_flushBuffer
     (JNIEnv *env, jobject mtlrq,
@@ -158,12 +424,19 @@
     INIT_PREVIOUS_OP();
     end = b + limit;
 
+    jboolean DEBUG_LOG = JNI_FALSE;
     while (b < end) {
         jint opcode = NEXT_INT(b);
 
-        J2dTraceLn2(J2D_TRACE_VERBOSE,
+        if (DEBUG_LOG) {
+            J2dTraceLn2(J2D_TRACE_ERROR,
+                    "MTLRenderQueue_flushBuffer: opcode_name = %s, rem=%d",
+                    getOpcodeString(opcode), (end-b));
+        } else {
+            J2dTraceLn2(J2D_TRACE_VERBOSE,
                     "MTLRenderQueue_flushBuffer: opcode=%d, rem=%d",
                     opcode, (end-b));
+        }
 
         if (opcode != sun_java2d_pipe_BufferedOpCodes_DRAW_GLYPH_LIST &&
             opcode != sun_java2d_pipe_BufferedOpCodes_NOOP)
@@ -211,7 +484,7 @@
                 jint y = NEXT_INT(b);
                 CONTINUE_IF_NULL(mtlc);
                 //TODO
-                J2dTraceLn(J2D_TRACE_INFO, "MTLRenderQueue_DRAW_PIXEL -- :TODO");
+                J2dTraceLn(J2D_TRACE_ERROR, "MTLRenderQueue_DRAW_PIXEL -- :TODO");
             }
             break;
         case sun_java2d_pipe_BufferedOpCodes_DRAW_SCANLINES:
@@ -599,7 +872,7 @@
         case sun_java2d_pipe_BufferedOpCodes_SAVE_STATE:
             {
                 //TODO
-                J2dTraceLn(J2D_TRACE_INFO, "MTLRenderQueue_SAVE_STATE -- :TODO");
+                J2dTraceLn(J2D_TRACE_ERROR, "MTLRenderQueue_SAVE_STATE -- :TODO");
 
             }
             break;
@@ -607,7 +880,7 @@
         case sun_java2d_pipe_BufferedOpCodes_RESTORE_STATE:
             {
                 //TODO
-                J2dTraceLn(J2D_TRACE_INFO, "MTLRenderQueue_RESTORE_STATE -- :TODO");
+                J2dTraceLn(J2D_TRACE_ERROR, "MTLRenderQueue_RESTORE_STATE -- :TODO");
 
             }
             break;
@@ -616,7 +889,7 @@
                 sync = JNI_TRUE;
 
                 // TODO
-                J2dTraceLn(J2D_TRACE_INFO, "MTLRenderQueue_SYNC -- :TODO");
+                J2dTraceLn(J2D_TRACE_ERROR, "MTLRenderQueue_SYNC -- :TODO");
 
             }
             break;
--- a/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLRenderer.m	Tue Aug 13 11:02:18 2019 +0530
+++ b/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLRenderer.m	Fri Aug 16 16:07:33 2019 +0530
@@ -199,7 +199,7 @@
 {
     jint *xPoints, *yPoints;
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLRenderer_drawPoly -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLRenderer_drawPoly -- :TODO");
 }
 
 void
@@ -207,7 +207,7 @@
                           jint scanlineCount, jint *scanlines)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLRenderer_DrawScanlines -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLRenderer_DrawScanlines -- :TODO");
 }
 
 void
@@ -573,7 +573,7 @@
     // parameters for uv texture coordinates of parallelogram corners
     jfloat u11, v11, u12, v12, u21, v21, u22, v22;
 
-    J2dTraceLn6(J2D_TRACE_INFO,
+    J2dTraceLn6(J2D_TRACE_ERROR,
                 "MTLRenderer_FillAAParallelogram -- :TODO"
                 "(x=%6.2f y=%6.2f "
                 "dx1=%6.2f dy1=%6.2f "
@@ -594,7 +594,7 @@
                                           jfloat ix12, jfloat iy12)
 {
     //TODO
-    J2dTraceLn(J2D_TRACE_INFO, "MTLRenderer_FillAAParallelogramInnerOuter -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "MTLRenderer_FillAAParallelogramInnerOuter -- :TODO");
 }
 
 void
@@ -612,7 +612,7 @@
     // parameters for "inner" parallelogram
     jfloat ifx11, ify11, idx21, idy21, idx12, idy12;
 
-    J2dTraceLn8(J2D_TRACE_INFO,
+    J2dTraceLn8(J2D_TRACE_ERROR,
                 "MTLRenderer_DrawAAParallelogram -- :TODO"
                 "(x=%6.2f y=%6.2f "
                 "dx1=%6.2f dy1=%6.2f lwr1=%6.2f "
--- a/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLSurfaceData.m	Tue Aug 13 11:02:18 2019 +0530
+++ b/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLSurfaceData.m	Fri Aug 16 16:07:33 2019 +0530
@@ -338,7 +338,7 @@
 jlong
 MTLSD_GetNativeConfigInfo(BMTLSDOps *mtlsdo)
 {
-    J2dTraceLn(J2D_TRACE_INFO, "OGLSD_GetNativeConfigInfo -- :TODO");
+    J2dTraceLn(J2D_TRACE_INFO, "MTLSD_GetNativeConfigInfo -- :TODO");
 
     return 0;
 }
@@ -359,7 +359,7 @@
 void
 MTLSD_SwapBuffers(JNIEnv *env, jlong pPeerData)
 {
-    J2dTraceLn(J2D_TRACE_INFO, "OGLSD_SwapBuffers -- :TODO");
+    J2dTraceLn(J2D_TRACE_ERROR, "OGLSD_SwapBuffers -- :TODO");
 }
 
 #pragma mark -