mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 10:08:08 +02:00
pageflip change from radeon driver
This commit is contained in:
parent
a400a1e404
commit
41cf68b4cb
1 changed files with 5 additions and 0 deletions
|
|
@ -42,6 +42,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#include "framebuffer.h"
|
||||
|
||||
#include "drirenderbuffer.h"
|
||||
|
||||
#if DEBUG_LOCKING
|
||||
char *prevLockFile = NULL;
|
||||
int prevLockLine = 0;
|
||||
|
|
@ -54,6 +56,9 @@ static void radeonUpdatePageFlipping(radeonContextPtr radeon)
|
|||
int use_back;
|
||||
|
||||
radeon->doPageFlip = radeon->sarea->pfState;
|
||||
if (!radeon->doPageFlip) {
|
||||
driFlipRenderbuffers(radeon->glCtx->WinSysDrawBuffer, GL_FALSE);
|
||||
}
|
||||
|
||||
use_back = (radeon->glCtx->DrawBuffer->_ColorDrawBufferMask[0] == BUFFER_BIT_BACK_LEFT);
|
||||
use_back ^= (radeon->sarea->pfCurrentPage == 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue