ac/nir: don't write tcs outputs to LDS that aren't read back.
authorDave Airlie <airlied@redhat.com>
Tue, 14 Nov 2017 05:11:39 +0000 (15:11 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 27 Nov 2017 03:50:24 +0000 (13:50 +1000)
commit043d14db30a849013005409c32ced8b756fec540
tree135bad635b0e97d746b7adc895c81307fef2a8b5
parent33dca36f4f28411ed4846786a6fbe049193b2711
ac/nir: don't write tcs outputs to LDS that aren't read back.

If the TCS doesn't read back the outputs, no need to store them
to LDS in the first place. (except for tess factors).

This seems to give about 50fps (3290->3330) with tessellation demo.

I haven't tested if it impacts DoW3 at all.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c