gpu: pvr: Reuse the same syncobject across all wraps
authorMark Underwood <mark.underwood@imgtec.com>
Fri, 14 May 2010 16:08:23 +0000 (18:08 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:41 +0000 (21:09 +0300)
commitd302900503f0d1414e35d030230210df552892d2
treeb4c3c2dae3c7cf8dc189965c0fb7fe0334c6960a
parent533601cf83764b422588cf1eae33408dd4a62d63
gpu: pvr: Reuse the same syncobject across all wraps

Create a hash table and store all the syncobjects that we create for
wrapped memory using the address of the buffer as the key. When a wrap
happens we check the hash table to see if the buffer has already been
wrapped and if so we retrieve the sync object and reuse it. When the
last wrap that is using a syncobject is freed then we remove the
syncobject from the hash table and free it.

Signed-off-by: Mark Underwood <mark.underwood@imgtec.com>
Signed-off-by: Imre Deak <imre.deak@nokia.com>
pvr/device.h
pvr/devicemem.c
pvr/pvrsrv.c
pvr/servicesint.h