OSDN Git Service

freedreno/msm: use hashtable to track bo idx
authorRob Clark <robclark@freedesktop.org>
Tue, 28 Jun 2016 17:33:07 +0000 (13:33 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 20 Jul 2016 23:42:21 +0000 (19:42 -0400)
commit6a23bd4b3c52fcd7529062b31c36dd03ae0cdd75
tree2bbeb14cd7be273fe2718bf3f9b61ed9131a3e22
parent419a154dbef839b920689bea72aa9af41b2b114f
freedreno/msm: use hashtable to track bo idx

Note: cache the last ring the bo was emitted on, to avoid excess
hashtable lookups.  We do this by tracking ring seqno to avoid
problems with dangling pointers.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
freedreno/msm/msm_priv.h
freedreno/msm/msm_ringbuffer.c