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

Fixes #51 by introducing a variable for an early return boolean. #55

Merged
merged 1 commit into from Dec 6, 2017

Conversation

@trishume
Copy link
Contributor

trishume commented Dec 6, 2017

See #51. This works around a bug in the macOS Nvidia shader compiler in 2014 rMBPs. The fix shows that as suspected this is very clearly a GPU bug. The funny part is that the compiler is clearly not great since putting the condition in a variable that isn't used anywhere shouldn't make much difference to a competent compiler.

I hope putting the condition in a variable doesn't significantly regress performance on other platforms. Might be worth a benchmark.

I also removed the unused lineDoesNotPassThroughPixel function.

cc @pcwalton @mmastrac

This works around a bug in the macOS Nvidia shader compiler
in 2014 rMBPs.
@leeoniya
Copy link

leeoniya commented Dec 6, 2017

this looks like a new one.

might be worth adding to https://github.com/servo/webrender/wiki/Driver-issues

@trishume
Copy link
Contributor Author

trishume commented Dec 6, 2017

@leeoniya Done!

@pcwalton
Copy link
Collaborator

pcwalton commented Dec 6, 2017

UGH. Thanks for tracking this down!

@pcwalton pcwalton merged commit f5a7032 into servo:master Dec 6, 2017
@trishume trishume deleted the trishume:fix-51 branch Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.