From 7fb5c835f7c9462e2095b6de645a0a75ad118c87 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 27 Dec 2019 17:49:27 +0100 Subject: [PATCH] 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: --- .../drivers/r600/sfn/sfn_shader_vertex.cpp | 19 +++++++++++++++++++ .../drivers/r600/sfn/sfn_shader_vertex.h | 8 ++++++++ 2 files changed, 27 insertions(+) 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 -- 2.30.2