2 Copyright 2009-2014, The AROS Development Team. All rights reserved.
6 #include "arosmesa_funcs.h"
7 #include "arosmesa_funcs_gallium.h"
8 #include <proto/exec.h>
9 #include <proto/gallium.h>
10 #include <gallium/pipe/p_screen.h>
11 #include <gallium/util/u_inlines.h>
13 /*****************************************************************************
23 Swaps the back with front buffers. MUST BE used to display the effect
24 of rendering onto the target RastPort, since GLA always work in
28 amesa - GL rendering context on which swap is to be performed.
38 *****************************************************************************/
40 struct arosmesa_context
* amesa
= (struct arosmesa_context
*)ctx
;
42 if (amesa
->framebuffer
->render_resource
)
44 /* Flush rendering cache before blitting */
45 amesa
->st
->flush(amesa
->st
, ST_FLUSH_FRONT
, NULL
);
47 BltPipeResourceRastPort(amesa
->framebuffer
->render_resource
, 0, 0,
48 amesa
->visible_rp
, amesa
->left
, amesa
->top
,
49 amesa
->framebuffer
->width
, amesa
->framebuffer
->height
);
52 AROSMesaCheckAndUpdateBufferSize(amesa
);