8358058: sun/java2d/OpenGL/DrawImageBg.java Test fails intermittently#27399
8358058: sun/java2d/OpenGL/DrawImageBg.java Test fails intermittently#27399prrace wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
/issue add 8164487,8237245,8297094,8328098,8325761,8358058 |
|
👋 Welcome back prr! A progress list of the required criteria for merging this PR into |
|
@prrace This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 221 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
@prrace The issue |
|
/issue add 8164487,8237245,8297094,8328098,8325761,8358058 |
|
@prrace The issue |
|
/issue add 8164487,8237245,8297094,8328098,8325761 |
|
@prrace The issue |
Webrevs
|
|
why on WIndows/Linux we set "-Dsun.java2d.uiScale=1" option and on mac we do not? |
I'd have used uiScale=1 everywhere, but I actually observed a few rounding errors on retina if I used uiScale = 1 . |
If it works mostly fine on macos then why it is needed on win/lin? |
| * Graphics2D.drawImage(BufferedImage, BufferedImageOp, x, y) to an | ||
| * OpenGL-accelerated destination produces the same results when performed | ||
| * in software via BufferedImageOp.filter(). | ||
| * @run main/othervm -Dsun.java2d.opengl=True -Dsun.java2d.uiScale=1 DrawBufImgOp -ignore |
There was a problem hiding this comment.
I think since it is failing if we remove ignore and since it is mentioned
/*
* If true, skips tests that are known to trigger bugs (which in
* turn may cause crashes, exceptions, or other artifacts).
*/
my opinion is to remove this param and problemlist this test in failing platform
There was a problem hiding this comment.
This is how the test already was. I'm not changing it. I'd be reducing testing if I did this.
Because fractional scaling on Windows causes problems too. And Linux we don't scale unless it is 2X and I don't have anything to test that so playing it safe. |
What are problems? Is it a product bug then? Or maybe the tests can use createMultiResolutionScreenCapture to get clean screenshots? |
|
I don't think it is a JDK product bug. It is something in Apple's scaling that we can't do anything about. |
I meant on windows, why it does not work as is, so we need to set scale to 1, the tests seems do not use some complicated colors, patters. |
I removed the -Dsun.java2d.uiScale=1 and ran the tests again - multiple times - on the hidpi system - So I am going to remove it. And if it ever recurs I will investigate. |
| * @test | ||
| * @bug 6248561 6264014 | ||
| * @key headful | ||
| * @requires (os.family != "mac") |
There was a problem hiding this comment.
It looks like we only need one @test statement because they are now identical (besides @requires) after removing uiScale. Same for others.
|
/integrate |
|
Going to push as commit ebeb77b.
Your commit was automatically rebased without conflicts. |
Moving to open a number of graphics related tests, originally written to test the OpenGL pipeline.
These versions are "better behaved" than the versions that were in closed - mostly meaning they now
do things on the right thread and paint properly on demand.
As a result they now pass - at least on systems with correct drivers etc.
There are a few bugs to add to the issue list which I'll do right after submitting this.
I also extended these tests so as to run with the default pipeline on every system, not just OpenGL.
This mostly went OK except that I found one of the tests fails on macOS with metal.
I've had to add a new problem listing for that.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27399/head:pull/27399$ git checkout pull/27399Update a local copy of the PR:
$ git checkout pull/27399$ git pull https://git.openjdk.org/jdk.git pull/27399/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27399View PR using the GUI difftool:
$ git pr show -t 27399Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27399.diff
Using Webrev
Link to Webrev Comment