r600/sfn: Add VS for TCS shader skeleton
authorGert Wollny <gert.wollny@collabora.com>
Fri, 27 Dec 2019 16:49:27 +0000 (17:49 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 10 Feb 2020 19:09:08 +0000 (19:09 +0000)
This adds the VS shader type that handles the output to tesselation shaders

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>

src/gallium/drivers/r600/sfn/sfn_shader_vertex.cpp
src/gallium/drivers/r600/sfn/sfn_shader_vertex.h

index 86182d927e95667363921f75e5a5c2d904fcf26d..67eb357a13412cb9c70504bf9bd2c01868690273 100644 (file)
@@ -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()
+{
+}
+
 }
index 4b7fb75c7d73933cf75a5fe6ed4b861c7aeef63f..fe8e6b1cbd5f33e6dc918baf5c2d83478824ec19 100644 (file)
@@ -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