1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[dxbc] Fix missing hull shader input declarations

Fixes tessellation in Tomb Raider 2013. Closes #368.
This commit is contained in:
Philip Rebohle 2018-09-13 18:25:32 +02:00
parent fdcb47cc45
commit 059073fcd0
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -358,6 +358,11 @@ namespace dxvk {
void DxbcCompiler::emitDclInterfaceReg(const DxbcShaderInstruction& ins) {
switch (ins.dst[0].type) {
case DxbcOperandType::InputControlPoint:
if (m_version.type() != DxbcProgramType::HullShader)
break;
/* fall through */
case DxbcOperandType::Input:
case DxbcOperandType::Output: {
// dcl_input and dcl_output instructions
@ -553,7 +558,6 @@ namespace dxvk {
// ID, which has been declared already.
} break;
case DxbcOperandType::InputControlPoint:
case DxbcOperandType::InputPatchConstant:
case DxbcOperandType::OutputControlPoint: {
// These have been declared as global input and