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

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

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: