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 <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3225>
This commit is contained in:
Gert Wollny 2019-12-27 17:49:27 +01:00 committed by Marge Bot
parent e17ac0d774
commit 7fb5c835f7
2 changed files with 27 additions and 0 deletions

View 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()
{
}
}

View 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