static void output_renderer_init(struct tinyds_output *output);
static void output_draw_with_renderer(struct tinyds_output *output);
#else
-static void output_swapchain_init(struct tinyds_output *output);
+static void output_swapchain_init(struct tinyds_output *output,
+ int width, int height, uint32_t format);
static void output_draw_with_swapchain(struct tinyds_output *output);
static void draw_view(struct tinyds_view *view, pixman_image_t *dst_image);
#endif
output_buffer_queue_init(output);
output_renderer_init(output);
#else
- output_swapchain_init(output);
+ output_swapchain_init(output, mode->width, mode->height,
+ DRM_FORMAT_XRGB8888);
#endif
output->output_destroy.notify = output_handle_destroy;
}
#else
static void
-output_swapchain_init(struct tinyds_output *output)
+output_swapchain_init(struct tinyds_output *output,
+ int width, int height, uint32_t format);
+
{
output->allocator = ds_tbm_allocator_create();
assert(output->allocator);
output->swapchain = ds_swapchain_create(output->allocator,
- mode->width, mode->height, DRM_FORMAT_XRGB8888);
+ width, height, format);
assert(output->swapchain);
}