From: Gert Wollny Date: Fri, 27 Dec 2019 16:49:27 +0000 (+0100) Subject: r600/sfn: Add VS for TCS shader skeleton X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fb5c835f7c9462e2095b6de645a0a75ad118c87;p=mesa.git r600/sfn: Add VS for TCS shader skeleton This adds the VS shader type that handles the output to tesselation shaders Signed-off-by: Gert Wollny Part-of: --- diff --git a/src/gallium/drivers/r600/sfn/sfn_shader_vertex.cpp b/src/gallium/drivers/r600/sfn/sfn_shader_vertex.cpp index 86182d927e9..67eb357a134 100644 --- a/src/gallium/drivers/r600/sfn/sfn_shader_vertex.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_shader_vertex.cpp @@ -551,4 +551,23 @@ void VertexShaderFromNirForGS::finalize_exports() { } + +VertexShaderFromNirForES::VertexShaderFromNirForES(r600_pipe_shader *sh, + UNUSED const pipe_stream_output_info *so_info, + r600_pipe_shader_selector& sel, + const r600_shader_key &key): + VertexShaderFromNir(sh, sel, key) +{ +} + +bool VertexShaderFromNirForES::do_emit_store_deref(UNUSED const nir_variable *out_var, + UNUSED nir_intrinsic_instr* instr) +{ + return false; +} + +void VertexShaderFromNirForES::finalize_exports() +{ +} + } diff --git a/src/gallium/drivers/r600/sfn/sfn_shader_vertex.h b/src/gallium/drivers/r600/sfn/sfn_shader_vertex.h index 4b7fb75c7d7..fe8e6b1cbd5 100644 --- a/src/gallium/drivers/r600/sfn/sfn_shader_vertex.h +++ b/src/gallium/drivers/r600/sfn/sfn_shader_vertex.h @@ -91,6 +91,14 @@ public: const r600_shader *m_gs_shader; }; +class VertexShaderFromNirForES : public VertexShaderFromNir { +public: + VertexShaderFromNirForES(r600_pipe_shader *sh, const pipe_stream_output_info *so_info, r600_pipe_shader_selector &sel, + const r600_shader_key &key); + bool do_emit_store_deref(const nir_variable *out_var, nir_intrinsic_instr* instr) override; + void finalize_exports() override; +}; + } #endif