radeon: Add DRI2 flush extension support, so we synchronize properly.
authorMario Kleiner <mario.kleiner@tuebingen.mpg.de>
Mon, 2 Aug 2010 02:17:03 +0000 (04:17 +0200)
committerJerome Glisse <jglisse@redhat.com>
Mon, 2 Aug 2010 17:29:44 +0000 (13:29 -0400)
commit646d2e9fbc41bf49075013009e9583bec4a51168
treee85b296ce4e1736cda0282d82f0297e9b06ab77e
parent3d39f56a8721ec6aa6d00965b7740fc8cb5edaae
radeon: Add DRI2 flush extension support, so we synchronize properly.

When a DRI2 swap buffer is pending we need to make sure we
have the flush extension so radeon doesn't resume rendering to
or reading from the not yet blitted front buffer.

This fixes:

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>
13 files changed:
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.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_pixel_read.c
src/mesa/drivers/dri/radeon/radeon_screen.c
src/mesa/drivers/dri/radeon/radeon_swtcl.c
src/mesa/drivers/dri/radeon/radeon_tcl.c
src/mesa/drivers/dri/radeon/radeon_tex_copy.c