Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

8261891: sanity/client/SwingSet/src/EditorPaneDemoTest.java fails with Metal API Validation #201

Closed
wants to merge 1 commit into from

Conversation

avu
Copy link
Collaborator

@avu avu commented Feb 23, 2021

Refactored AA shader usage. Performed end of AAshader encoder for incompatible rendering modes


Progress

  • Change must not contain extraneous whitespace

Issue

  • JDK-8261891: sanity/client/SwingSet/src/EditorPaneDemoTest.java fails with Metal API Validation

Download

$ git fetch https://git.openjdk.java.net/lanai pull/201/head:pull/201
$ git checkout pull/201

…h Metal API Validation

Refactored AA shader usage. Performed end of AAshader encoder for incompatible rendering modes
@bridgekeeper
Copy link

bridgekeeper bot commented Feb 23, 2021

👋 Welcome back avu! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Feb 23, 2021

@avu 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:

8261891: sanity/client/SwingSet/src/EditorPaneDemoTest.java fails with Metal API Validation

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 no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Feb 23, 2021
@mlbridge
Copy link

mlbridge bot commented Feb 23, 2021

Webrevs

@avu
Copy link
Collaborator Author

avu commented Feb 23, 2021

/integrate

@openjdk openjdk bot closed this Feb 23, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Feb 23, 2021
@openjdk
Copy link

openjdk bot commented Feb 23, 2021

@avu Pushed as commit 85f7c21.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@@ -355,7 +366,8 @@ - (void)setContext:(MTLContex * _Nonnull)mtlc {
//
jboolean needEnd = JNI_FALSE;
if (_encoder != nil) {
if (_destination != dest || renderOptions->isAA != _encoderStates.aa) {
if (_destination != dest || renderOptions->isAA != _encoderStates.aa ||
renderOptions->isAAShader != _encoderStates.aaShader) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Alexey,

Is there any performance impact because of ending the encoder on switch?

Thanks,
Jay

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Jay,

Thanks for the comment. I didn’t find any difference at least with RenderPerfTest. However, looks like we don’t need to end the encoder here - the appropriate state will be recovered later in the code (by updatePipelineState method).

So, I’m going to remove this condition from the if statement.

Best Regards,
Alexey

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Alexey,

Yes i also think we dont need to explicit end encoder here and leave it to updatePipelineState. This was the next clarification i wanted to ask.

Thanks,
Jay

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants