tu: Support pipelines without a fragment shader
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 6 May 2020 22:07:48 +0000 (00:07 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 7 May 2020 16:05:53 +0000 (16:05 +0000)
commit6d513eb0db25a272da65822f35907456b544f172
treeae0c78dcbcb0dbfb03d0350578e2279d6fe1df5a
parent7ba2333cc17e7f0a1520866bcfd60a991d34295e
tu: Support pipelines without a fragment shader

Apparently this is allowed, and the CTS started doing this more often
recently which resulted in frequent hangs running the entire CTS. I
copied the code to create an empty FS from radv.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4928>
src/freedreno/vulkan/tu_pipeline.c
src/freedreno/vulkan/tu_shader.c