OSDN Git Service

broadcom/vc4: Use a single-entry cached last_hindex value.
authorEric Anholt <eric@anholt.net>
Wed, 29 Nov 2017 00:17:16 +0000 (16:17 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 1 Dec 2017 23:37:28 +0000 (15:37 -0800)
commit0ed952c7e9b811bc11dec64bd4bebcdf4222cc85
tree3f559f6dd6705c0724f3494736fbeebf1d7d96f5
parent230e646a4013ed5d9c80c54d48ef0ac9ee4edbb0
broadcom/vc4: Use a single-entry cached last_hindex value.

Since almost all BOs will be in one CL at a time, this cache will almost
always hit except for the first usage of the BO in each CL.

This didn't show up as statistically significant on the minetest trace
(n=340), but if I lop off the throttled lobe of the bimodal distribution,
it very clearly does (0.74731% +/- 0.162093%, n=269).
src/gallium/drivers/vc4/vc4_bufmgr.h
src/gallium/drivers/vc4/vc4_cl.c