broadcom/vc4: Skip emitting redundant VC4_PACKET_GEM_HANDLES.
authorEric Anholt <eric@anholt.net>
Sat, 25 Nov 2017 06:15:28 +0000 (22:15 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 1 Dec 2017 23:37:28 +0000 (15:37 -0800)
commit516736705017f3e19be37f22c6655a055413683b
tree674688a3b58bd7e80b29e3202743a9f853c5554f
parent842b05d6ad8da895bc300ad9652bc09e2b0b1959
broadcom/vc4: Skip emitting redundant VC4_PACKET_GEM_HANDLES.

Now that there's only one user of it, it's pretty obvious how to avoid
emitting redundant ones.  This should save a bunch of kernel validation
overhead.

No statistically sigificant difference on the minetest trace I was looking
at (n=169), but the maximum FPS is up by .3%
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_draw.c
src/gallium/drivers/vc4/vc4_job.c