mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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) {
|
void DxbcCompiler::emitDclInterfaceReg(const DxbcShaderInstruction& ins) {
|
||||||
switch (ins.dst[0].type) {
|
switch (ins.dst[0].type) {
|
||||||
|
case DxbcOperandType::InputControlPoint:
|
||||||
|
if (m_version.type() != DxbcProgramType::HullShader)
|
||||||
|
break;
|
||||||
|
/* fall through */
|
||||||
|
|
||||||
case DxbcOperandType::Input:
|
case DxbcOperandType::Input:
|
||||||
case DxbcOperandType::Output: {
|
case DxbcOperandType::Output: {
|
||||||
// dcl_input and dcl_output instructions
|
// dcl_input and dcl_output instructions
|
||||||
@ -553,7 +558,6 @@ namespace dxvk {
|
|||||||
// ID, which has been declared already.
|
// ID, which has been declared already.
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case DxbcOperandType::InputControlPoint:
|
|
||||||
case DxbcOperandType::InputPatchConstant:
|
case DxbcOperandType::InputPatchConstant:
|
||||||
case DxbcOperandType::OutputControlPoint: {
|
case DxbcOperandType::OutputControlPoint: {
|
||||||
// These have been declared as global input and
|
// These have been declared as global input and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user