dri2: block close-screen until flips complete 0.3.0
authorRob Clark <rob@ti.com>
Sat, 21 Apr 2012 00:13:57 +0000 (19:13 -0500)
committerRob Clark <rob@ti.com>
Sat, 21 Apr 2012 00:19:45 +0000 (19:19 -0500)
commit67b875f348fe67289d00b70526c4cf6d82280d29
treef8998c3c6df2307656dbeeda1165588ff9661e15
parent1272ef49f75295d462799910007cb07367c1d35a
dri2: block close-screen until flips complete

If CloseScreen happens while we are waiting for a page_flip event, we
need to block the CloseScreen until after the page_flip is processed
to avoid deref'ing the screen ptr after the screen is closed.
src/drmmode_display.c
src/omap_dri2.c
src/omap_driver.h