radv: implement fast HTILE clears for depth or stencil only on GFX9

Graphics / Mesa 3D Graphics Library / Mesa - Samuel Pitoiset [gmail.com] - 19 November 2018 15:32 EST

This allows to fast clear the depth part (or the stencil part) of a depth+stencil surface when HTILE is enabled. I didn't test on GFX8, so it's disabled currently.

This gives a very nice boost, for example when clearing the depth aspect of a 4096x4096 D32_SFLOAT_S8_UINT image (18x faster).

BEFORE: 235 us AFTER: 13 us

724107553c radv: implement fast HTILE clears for depth or stencil only on GFX9
src/amd/vulkan/radv_meta_clear.c | 268 ++++++++++++++++++++++++++++++++++++++-
src/amd/vulkan/radv_private.h | 6 +
2 files changed, 269 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share