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

Glutin update #44

Merged
merged 4 commits into from
Aug 22, 2015
Merged

Glutin update #44

merged 4 commits into from
Aug 22, 2015

Conversation

paulrouget
Copy link

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
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
Copy link
Member

glennw commented Aug 14, 2015

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
Copy link
Member

glennw commented Aug 14, 2015

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
Copy link
Member

glennw commented Aug 14, 2015

@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
Copy link

tomaka commented Aug 14, 2015

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

@paulrouget
Copy link
Author

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

Want me to do a PR?

@tomaka
Copy link

tomaka commented Aug 14, 2015

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
Copy link
Member

glennw commented Aug 22, 2015

@bors-servo r+

@bors-servo
Copy link

📌 Commit f376930 has been approved by glennw

@bors-servo
Copy link

⌛ 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

☀️ 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