turnip: Set has_gs in ir3_shader_key
authorBrian Ho <brian@brkho.com>
Wed, 1 Apr 2020 16:01:52 +0000 (09:01 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Apr 2020 14:13:20 +0000 (14:13 +0000)
commit1af71bee734da7d87e0ef1b71a64e12fa81ed92e
tree67727b00a29cdba485893d67ca5c0a7a188298a4
parentdb2ee3686d396eabd9233e80e368da0e9ae521be
turnip: Set has_gs in ir3_shader_key

The ir3 compiler only lowers the VS and GS for geometry shading if
the corresponding has_gs key is set in the shader key. Without it,
GS-specific intrinsics like load_per_vertex_input won't get lowered
and the GS header will be initialized with invalid values.

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