freedreno: Split the fd_batch_resource_used by read vs write.
authorEric Anholt <eric@anholt.net>
Mon, 11 May 2020 20:28:58 +0000 (13:28 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 12 May 2020 21:19:50 +0000 (21:19 +0000)
commit3e424bcdfcef19682f9b651f7c1a04e32f18be5c
treefc93d4e615778f04c78d0aaff17008cd98a8d7c1
parentfdcadf611e03f0dc8878fb032b62510c38fe069b
freedreno: Split the fd_batch_resource_used by read vs write.

This is for an optimization I plan in a following commit.  I found I had
to add likely()s to avoid a perf regression from branch prediction.

On the drawoverhead 8 UBOs test, the HW can't quite keep up with the CPU,
but if I set nohw then this change is 1.32023% +/- 0.373053% (n=10).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4996>
src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
src/gallium/drivers/freedreno/freedreno_batch.c
src/gallium/drivers/freedreno/freedreno_batch.h
src/gallium/drivers/freedreno/freedreno_draw.c
src/gallium/drivers/freedreno/freedreno_query_acc.c