backend-rdp: don't use shadow buffer for the RDP backend
authorStefan Agner <stefan@agner.ch>
Sun, 16 Jun 2019 21:42:58 +0000 (23:42 +0200)
committerStefan Agner <stefan@agner.ch>
Wed, 9 Oct 2019 21:44:58 +0000 (21:44 +0000)
Since the RDP backend allocates regular memory already as hw buffer
anyway, a shadow buffer is not required. The read_pixels interface
anyway renders directly into the hardware buffer, hence this does
not make a performance difference in practise. It avoids allocating
an unnecessary buffer.

Signed-off-by: Stefan Agner <stefan@agner.ch>
libweston/backend-rdp/rdp.c

index 109c20ba5cc2a67999fb69bce4a42dbd93548634..6e26770c7af5d359a7fb29cdab59671b156ea95f 100644 (file)
@@ -484,7 +484,7 @@ rdp_switch_mode(struct weston_output *output, struct weston_mode *target_mode)
        output->current_mode->flags |= WL_OUTPUT_MODE_CURRENT;
 
        pixman_renderer_output_destroy(output);
-       pixman_renderer_output_create(output, PIXMAN_RENDERER_OUTPUT_USE_SHADOW);
+       pixman_renderer_output_create(output, 0);
 
        new_shadow_buffer = pixman_image_create_bits(PIXMAN_x8r8g8b8, target_mode->width,
                        target_mode->height, 0, target_mode->width * 4);