freedreno: optimize rebind_resource()

Graphics / Mesa 3D Graphics Library / Mesa - Rob Clark [chromium.org] - 29 April 2020 00:08 EDT

Track how resources are used, ie. which state they may potentially dirty if the backing bo is changed/reallocated, to optimize rebind_resource().

This will be more important in a later patch when we hook up eviction of entries in a6xx tex state cache.

f12188ff526 freedreno: optimize rebind_resource()
src/gallium/drivers/freedreno/freedreno_resource.c | 104 ++++++++++++++-------
src/gallium/drivers/freedreno/freedreno_resource.h | 31 ++++++
src/gallium/drivers/freedreno/freedreno_state.c | 20 +++-
src/gallium/drivers/freedreno/freedreno_texture.c | 6 +-
4 files changed, 123 insertions(+), 38 deletions(-)

Upstream: cgit.freedesktop.org


  • Share