Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Glutin update - #44

Merged
bors-servo merged 4 commits into
servo:servofrom
paulrouget:glutin-update
Aug 22, 2015
Merged

bors-servo merged 4 commits into
servo:servofrom
paulrouget:glutin-update

Conversation

@paulrouget

Copy link
Copy Markdown

Previous PR (#43) was against the master branch, not the servo branch.

Review on Reviewable

@paulrouget paulrouget mentioned this pull request Aug 14, 2015
@paulrouget

Copy link
Copy Markdown
Author

On Linux, we're getting this error:

[glutin] x error code=53 major=0 minor=0!
thread '<main>' panicked at 'Failed to compile shader: ', /home/gw/code/work/servo_alt/servo/.cargo/git/checkouts/rust-layers-c02709c0157e02cd/master/src/rendergl.rs:163

Shader compilation failing.

Using glx instead of egl fixes the issue.

We could make it possible to select glx instead of egl, or update the shaders used in servo, or maybe there's a way to configure egl to be less strict.

@tomaka, what would you recommend?

@glennw

glennw commented Aug 14, 2015

Copy link
Copy Markdown
Member

Unfortunately the shader compiler error log is empty for me - I'm trying out a few things to narrow down what's actually causing the shader compilation to fail.

@glennw

glennw commented Aug 14, 2015

Copy link
Copy Markdown
Member

Hmm, according to https://wiki.debian.org/ATIProprietary#AMD_Catalyst_14.9 (which might be out of date) fglrx (which is what this machine is running) doesn't support EGL. And enabling the mesa egl debug output, it does look like it's loading a software implementation of EGL on my machine.

@glennw

glennw commented Aug 14, 2015

Copy link
Copy Markdown
Member

@paulrouget Switching the lines in x11/window.rs to prefer GLX over EGL makes it work on my machine, and is probably a safe bet. Perhaps we could add our own local patch for that, and then do some further investigation as a follow up?

@metajack Although I don't really want to delay merging this, perhaps we should wait until after mid-week anyway, to avoid any android issues?

@tomaka

tomaka commented Aug 14, 2015

Copy link
Copy Markdown

I guess I'm going to revert to GLX by default instead of EGL.

@paulrouget

Copy link
Copy Markdown
Author

I guess I'm going to revert to GLX by default instead of EGL.

Want me to do a PR?

@tomaka

tomaka commented Aug 14, 2015

Copy link
Copy Markdown

Want me to do a PR?

That would be nice :)

It's just a two lines fix, but I'm a bit lazy.

EDIT: nevermind, rust-windowing#569 has been opened already

@glennw

glennw commented Aug 22, 2015

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown

📌 Commit f376930 has been approved by glennw

@bors-servo

Copy link
Copy Markdown

⌛ Testing commit f376930 with merge 22a561c...

bors-servo pushed a commit that referenced this pull request Aug 22, 2015
Glutin update

Previous PR (#43) was against the master branch, not the servo branch.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/glutin/44)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown

☀️ Test successful - travis

@bors-servo
bors-servo merged commit f376930 into servo:servo Aug 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants