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:
parent
fdcb47cc45
commit
059073fcd0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user