Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scissor test #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Pokechu22
Copy link
Contributor

See dolphin-emu/dolphin#10251. The test I originally wrote is here.

Here is the output from a real Wii. The software renderer gives identical output with that PR. Vulkan doesn't pass all of the tests, but it always correctly includes one of the rectangles; the PR doesn't currently attempt to set up multiple viewports so that multiple rectangles can end up on screen, so this is the expected result. Running the test on my main Wii does give varying failures, but it's always the same locations that fail, so I think this is caused by failing RAM. (I'm guessing specific tests fail more often than others because those tests are ones where the screen is expected to be blank, and thus the only ones where the entire screen is checked.) Those failures didn't happen on my secondary Wii.

This test doesn't currently check what happens in the region outside of the viewport, as that currently isn't emulated. It does render something there, but the blue channel for that is set to be the same as the clear color, so the main test doesn't look at it. This could be implemented later on if this ends up being something we care about, but it could also be part of the clipping test (which currently fails on real hardware?)

Comment on lines 1 to 3
// Copyright 2021 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Other files in hwtests are currently GPLv2 only; the license migration that was done with main Dolphin doesn't seem to have been done for hwtests. I've chosen to use GPLv2+ here; I don't think there are any problems with offering GPLv2+ for a specific file in a combined work that's currently GPLv2.

Copy link
Member

Choose a reason for hiding this comment

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

Feel free to relicense any of the code I authored in the hwtests repository to GPLv2+ as well.

Copy link
Member

Choose a reason for hiding this comment

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

@Pokechu22 Sounds good. But for consistency with the main repo, I would suggest using SPDX-License-Identifier instead of the old-style license comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants