radv: cache the slab bo pointer in the pipeline.
authorDave Airlie <airlied@redhat.com>
Mon, 9 May 2022 06:06:58 +0000 (16:06 +1000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 11 May 2022 05:19:38 +0000 (05:19 +0000)
commitb20bd9e0dfd11e8f91a893a0083fe5fad5ea93dc
tree38922852a983360e8a530c271856662a3ea7aded
parent87f4252a51ff2e6227dceea12f608366cb98e141
radv: cache the slab bo pointer in the pipeline.

Otherwise each emission has to pointer chase across cachelines.

Reduces overhead seen with zink on pixmark volplosion test.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16393>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_pipeline_cache.c
src/amd/vulkan/radv_private.h