dri2: don't keep fb_id
authorRob Clark <rob@ti.com>
Sat, 16 Jun 2012 23:13:30 +0000 (18:13 -0500)
committerRob Clark <rob@ti.com>
Mon, 18 Jun 2012 21:27:31 +0000 (16:27 -0500)
commitc26130ba2edad4cbceaa40177759d06db02333f1
tree86884bf9f18c41fdc5bcfd541e663eeec2061787
parent95ad991010b42870f11626d5defe82b2b2507372
dri2: don't keep fb_id

When the client re-requests buffers, the front buffer is always destroyed
and recreated, and if that is drmModeRmFB()'ing the front buffer, that
causes problems.  This was hidden by a bug that we didn't exchange the
fb_id so we were always flipping to the same front buffer.

Signed-off-by: Rob Clark <rob@ti.com>
src/drmmode_display.c
src/omap_dri2.c
src/omap_driver.h