freedreno/a6xx: add fd_emit_take_group()
authorRob Clark <robdclark@chromium.org>
Fri, 2 Aug 2019 16:57:08 +0000 (09:57 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 13 Aug 2019 15:11:26 +0000 (08:11 -0700)
commit4b82d1bbb723e77f278d9348e8437cf12811e0ca
tree694c1dc7acc7d88a5b5bd79601729cf36baef2cd
parent4a188e421522f10af85e5bb8c42c60666d02e778
freedreno/a6xx: add fd_emit_take_group()

Which takes ownership of the stateobj.  Useful for streaming state-
objs, to avoid an extra ref/unref

Worth ~5% at gl_driver2

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
src/gallium/drivers/freedreno/a6xx/fd6_emit.h