diff options
author | Neil Roberts <neil@linux.intel.com> | 2014-03-07 18:05:50 +0000 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-03-12 14:44:02 -0700 |
commit | 77c1a5b7dc6056717659eaef4034bb4d1bdc48f0 (patch) | |
tree | d592ee2bbaf7d0f7793d4b8d7412c63bdfc49437 /src/gl-renderer.h | |
parent | b7f8533e2b78cfba9c39f618251a12fc74bf5036 (diff) | |
download | weston-77c1a5b7dc6056717659eaef4034bb4d1bdc48f0.tar.gz |
Add support for having different GBM formats for different outputs
The gbm-format configuration option can now be specified per-output as
well as in the core config section. If it is not specified it will
default to the format specified in the core section. The
EGL_MESA_configless_context extension is required for this to work. If
this extension is available it will create a context without an
EGLConfig and then it will potentially use a different EGLConfig for
each output.
The gl-renderer interface has been changed so that it takes the EGL
attributes and visual ID in the create_output function as well as in
the create function.
Diffstat (limited to 'src/gl-renderer.h')
-rw-r--r-- | src/gl-renderer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gl-renderer.h b/src/gl-renderer.h index dcdf69d8..db42f6ca 100644 --- a/src/gl-renderer.h +++ b/src/gl-renderer.h @@ -58,7 +58,9 @@ struct gl_renderer_interface { EGLDisplay (*display)(struct weston_compositor *ec); int (*output_create)(struct weston_output *output, - EGLNativeWindowType window); + EGLNativeWindowType window, + const EGLint *attribs, + const EGLint *visual_id); void (*output_destroy)(struct weston_output *output); |