radv/shader_info: start gathering tess output info (v2)
authorDave Airlie <airlied@redhat.com>
Mon, 19 Feb 2018 05:49:04 +0000 (05:49 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 16 Mar 2018 05:22:23 +0000 (05:22 +0000)
commitd89b16b7b9c3de8b7a7b896822f3893fdda4dbec
treeb050ad413679533bf6c7f6af58438d4f2678b78b
parent2012dae19a1ef73224c4e54eab4cd731f1d59ddf
radv/shader_info: start gathering tess output info (v2)

This gathers the ls outputs written by the vertex shader,
and the tcs outputs, these are needed to calculate certain
tcs parameters.

These have to be separate for combined gfx9 shaders.

This is a bit pessimistic compared to the nir pass,
as we don't work out the individual slots for tcs outputs,
but I actually thing it should be fine to just mark the whole
thing used here.

v2: move to radv, handle clip dist (Samuel),
    handle compacts and patchs properly.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_shader.h
src/amd/vulkan/radv_shader_info.c