radv/pipeline: handle tessellation shader compilation
authorDave Airlie <airlied@redhat.com>
Thu, 30 Mar 2017 07:45:42 +0000 (08:45 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 31 Mar 2017 21:16:51 +0000 (07:16 +1000)
commit60fc0544e085bae1d19fa75f9d7806de50c38cef
tree28414bb692937604b6d59221f965fa667febe7b6
parentaaabdd6bc6ac6e7edf218c473cf2a7a9a02c116e
radv/pipeline: handle tessellation shader compilation

So tess shaders have some circular dependencies,

TCS needs the TES primitive mode
TES needs the TCS vertices out

This builds the nir for each shader first to get the
info, executes a tes specific nir pass, then builds
the LLVM shaders.

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