radv/ac/nir: only emit tess factors to storage if tes reads them
authorDave Airlie <airlied@redhat.com>
Sun, 22 Oct 2017 20:23:29 +0000 (06:23 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 22 Oct 2017 21:10:29 +0000 (07:10 +1000)
commitda9c3cd3ee5494b43a8ab3f9a3fee95620d9d357
tree748b7d9d8a755928d3acd8d1e2af2e65846c4743
parent6ce550453f1df64caeb956f215d32da96b89f2b1
radv/ac/nir: only emit tess factors to storage if tes reads them

Otherwise we just need to write them to the tf ring.

this seems to improve the tessellation demo on Bonarie
~2190->~2230 fps

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_nir_to_llvm.h
src/amd/vulkan/radv_pipeline.c