turnip: Treating non-d/s-write pipelines as not having d/s feedback loops.
authorEmma Anholt <emma@anholt.net>
Wed, 24 Aug 2022 22:34:26 +0000 (15:34 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 16:47:02 +0000 (16:47 +0000)
commit3ef13ef2349d1c05345d8d093b1db7b639819966
tree7327622ae578833526eef8b663fcf389e064a99a
parent14911e8f83f726eb2bd6b413d5054d9c332976e9
turnip: Treating non-d/s-write pipelines as not having d/s feedback loops.

A subpass in gfxbench has the depth buffer present, but not written to,
for a render pass using the depth buffer as an input attachment.  We can
skip single-prim-mode and the associated "oh no don't use sysmem" in that
case.

Improves gfxbench vk-5-normal perf by 1.56193% +/- 0.0743035% (n=14).
Part of #6327.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18241>
src/freedreno/vulkan/tu_autotune.c
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_cmd_buffer.h
src/freedreno/vulkan/tu_pipeline.c
src/freedreno/vulkan/tu_pipeline.h