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

Support Mesa off-screen software rendering with minimal platform deps #3789

Closed
kmcallister opened this issue Oct 23, 2014 · 3 comments
Closed

Support Mesa off-screen software rendering with minimal platform deps #3789

kmcallister opened this issue Oct 23, 2014 · 3 comments

Comments

@kmcallister
Copy link
Contributor

@kmcallister kmcallister commented Oct 23, 2014

Mesa supports a mode where OpenGL renders to an off-screen buffer in main memory. This is pure computation in userspace; there's no window system or OS dependencies. There are several ways we could use this in Servo:

  • Headless ref tests without Xfvb
  • Headless embedders that want to save raster output. (For the vector part of this see #3788.)
  • Extreme portability. In this mode you can use Servo on any platform that has a framebuffer, e.g. EFI, Linux fbdev, game console homebrew
  • High-security mode where all of Servo is heavily sandboxed, except a minimal UI task that communicates with the engine over a well-defined IPC protocol and receives bitmaps to display. At this point it really is a VM and an OS that you can VNC into :D

We can enable this in desktop Servo if we switch to glutin (#3579). But maybe we should only think of it as a feature for other embedders.

@kmcallister
Copy link
Contributor Author

@kmcallister kmcallister commented Oct 23, 2014

It would be pretty awesome to teach a systems course where you write an OS in Rust with a TCP/IP stack and the final project is to port Servo to it.

@SimonSapin
Copy link
Member

@SimonSapin SimonSapin commented Oct 23, 2014

Sounds great, requiring an X server is a common pain point when doing stuff on a headless server.

@glennw
Copy link
Member

@glennw glennw commented Aug 31, 2015

This happened.

@glennw glennw closed this Aug 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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