radeon: Add DRI2 flush extension to so we synchronize properly.
authorMario Kleiner <mario.kleiner@tuebingen.mpg.de>
Sun, 25 Jul 2010 14:29:24 +0000 (16:29 +0200)
committerJerome Glisse <jglisse@redhat.com>
Mon, 2 Aug 2010 14:43:51 +0000 (10:43 -0400)
commit8446f257b3e3ca4a3eb2c79bc357e46343e04e87
tree06ae4fc6d022896602969e4f813609011c40078c
parent1f1928db001527c3dcf1d78d6a5d2ef8f519327b
radeon: Add DRI2 flush extension to so we synchronize properly.

When DRI2 swap buffer is pending (copy buffer not pageflipping)
we need to make sure we have the flush extension so radeon doesn't
resume rendering on the not yet blitted front buffer.

Modified version of Jerome's patch to add flush extension
in the correct place.

This prepares a possible fix for:

https://bugs.freedesktop.org/show_bug.cgi?id=28341
https://bugs.freedesktop.org/show_bug.cgi?id=28410

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
src/mesa/drivers/dri/r200/r200_swtcl.c
src/mesa/drivers/dri/r200/r200_tcl.c
src/mesa/drivers/dri/r300/r300_render.c
src/mesa/drivers/dri/r600/r700_clear.c
src/mesa/drivers/dri/r600/r700_render.c
src/mesa/drivers/dri/radeon/radeon_common_context.c
src/mesa/drivers/dri/radeon/radeon_common_context.h
src/mesa/drivers/dri/radeon/radeon_screen.c
src/mesa/drivers/dri/radeon/radeon_swtcl.c
src/mesa/drivers/dri/radeon/radeon_tcl.c