[2/3] gl-renderer: read PIXMAN_x8r8g8b8 as GL_BGRA_EXT

Submitted by Olivier Blin on July 6, 2017, 10:06 a.m.

Details

Message ID 20170706100615.24264-3-olivier.blin@softathome.com
State New
Headers show
Series "Remote display with 3D acceleration using Wayland/Weston" ( rev: 2 ) in Wayland

Not browsing as part of any series.

Commit Message

Olivier Blin July 6, 2017, 10:06 a.m.
This is needed by the RDP backend, which uses PIXMAN_x8r8g8b8 for its
shadow buffers.
---
 libweston/gl-renderer.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c
index da29b072..b8b120a1 100644
--- a/libweston/gl-renderer.c
+++ b/libweston/gl-renderer.c
@@ -1213,6 +1213,7 @@  gl_renderer_read_pixels(struct weston_output *output,
 
 	switch (format) {
 	case PIXMAN_a8r8g8b8:
+	case PIXMAN_x8r8g8b8:
 		gl_format = GL_BGRA_EXT;
 		break;
 	case PIXMAN_a8b8g8r8:

Comments

Le 06/07/2017 à 12:06, Olivier Blin a écrit :
> This is needed by the RDP backend, which uses PIXMAN_x8r8g8b8 for its
> shadow buffers.
> ---
>  libweston/gl-renderer.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c
> index da29b072..b8b120a1 100644
> --- a/libweston/gl-renderer.c
> +++ b/libweston/gl-renderer.c
> @@ -1213,6 +1213,7 @@ gl_renderer_read_pixels(struct weston_output *output,
>  
>  	switch (format) {
>  	case PIXMAN_a8r8g8b8:
> +	case PIXMAN_x8r8g8b8:
>  		gl_format = GL_BGRA_EXT;
>  		break;
>  	case PIXMAN_a8b8g8r8:
> 

Reviewed-by: David Fort <contact@hardening-consulting.com>