Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8251242

Tile based rendering results in artifacts in last column while using metal pipeline

XMLWordPrintable

    • 2d
    • x86_64
    • os_x

      Rendering artifacts occur when the below code is run with metal pipeline with uiScale=1.0 (or on external monitor)

      Please note that it is not a bug in XOR mode implementation. It is found while working on XOR mode.

      g2d.setXORMode(Color.LIGHT_GRAY);
                  GradientPaint blueToRed = new GradientPaint(10, 600, Color.BLUE,
                          250, 700, Color.RED);
                  g2d.setPaint(blueToRed);
                  g2d.fill(new Rectangle2D.Double(10, texturePaintSectionY, 240, 100));
                  GradientPaint blackToGray = new GradientPaint(10, 800, Color.BLACK,
                          250, 700, Color.LIGHT_GRAY);
                  g2d.setPaint(blackToGray);
                  g2d.fill(new Rectangle2D.Double(10, texturePaintSectionY + 100, 240, 100));

      See output screenshot generated with OpenGL and Metal pipeline.

      I have debugged a bit, it looks like - method MTLBlitLoops_SurfaceToSwBlit has a bug. I could not conclude what needs to be fixed.

        1. Metal_output.png
          15 kB
          Ajit Ghaisas
        2. OpenGL_output.png
          13 kB
          Ajit Ghaisas

            aghaisas Ajit Ghaisas
            aghaisas Ajit Ghaisas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: