mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-23 20:05:01 +00:00
Initialize V0 to PrimitiveId in hull shader (#1985)
This commit is contained in:
parent
9091223396
commit
62780e4e43
1 changed files with 1 additions and 1 deletions
|
@ -124,12 +124,12 @@ void Translator::EmitPrologue() {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LogicalStage::TessellationControl: {
|
case LogicalStage::TessellationControl: {
|
||||||
|
ir.SetVectorReg(IR::VectorReg::V0, ir.GetAttributeU32(IR::Attribute::PrimitiveId));
|
||||||
// Should be laid out like:
|
// Should be laid out like:
|
||||||
// [0:8]: patch id within VGT
|
// [0:8]: patch id within VGT
|
||||||
// [8:12]: output control point id
|
// [8:12]: output control point id
|
||||||
ir.SetVectorReg(IR::VectorReg::V1,
|
ir.SetVectorReg(IR::VectorReg::V1,
|
||||||
ir.GetAttributeU32(IR::Attribute::PackedHullInvocationInfo));
|
ir.GetAttributeU32(IR::Attribute::PackedHullInvocationInfo));
|
||||||
// TODO PrimitiveId is probably V2 but haven't seen it yet
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LogicalStage::TessellationEval:
|
case LogicalStage::TessellationEval:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue