Manage fences in user-mode bufmgr_fake to clean buffers
authorKeith Packard <keithp@keithp.com>
Thu, 9 Oct 2008 21:30:56 +0000 (14:30 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 10 Oct 2008 01:25:58 +0000 (18:25 -0700)
commit94c88c151cecae48ce1f4f01acddfaaad4b437f3
treeeff25f07c323167af6e216e7304f56735c291619
parent3169d9639bd002b43e4064cea32e0d262076c1e0
Manage fences in user-mode bufmgr_fake to clean buffers

When using bufmgr_fake without DRM, the X server idles the ring whenever it
wants to wait for something to complete (brutal, but effective). In this
case, bufmgr_fake must treat the pending fence as having passed. However, it
wasn't recording the fences as it emitted them, nor cleaning buffers as they
passed.

Signed-off-by: Keith Packard <keithp@keithp.com>
libdrm/intel/intel_bufmgr_fake.c