Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tools/clang/lib/SPIRV/DeclResultIdMapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3522,7 +3522,8 @@ SpirvVariable *DeclResultIdMapper::createSpirvInterfaceVariable(
// Decorate with PerPrimitiveNV for per-primitive out variables.
spvBuilder.decoratePerPrimitiveNV(varInstr,
varInstr->getSourceLocation());
} else {
} else if (stageVar.getSemanticInfo().getKind() !=
hlsl::Semantic::Kind::DomainLocation) {
spvBuilder.decoratePatch(varInstr, varInstr->getSourceLocation());
}
}
Expand Down
1 change: 0 additions & 1 deletion tools/clang/test/CodeGenSPIRV/bezier.domain.hlsl2spv
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ DS_OUTPUT BezierEvalDS( HS_CONSTANT_DATA_OUTPUT input,
// CHECK-NEXT: OpDecorate %in_var_TANVCORNER Patch
// CHECK-NEXT: OpDecorate %in_var_TANWEIGHTS Patch
// CHECK-NEXT: OpDecorate %gl_TessCoord BuiltIn TessCoord
// CHECK-NEXT: OpDecorate %gl_TessCoord Patch
// CHECK-NEXT: OpDecorate %gl_Position BuiltIn Position
// CHECK-NEXT: OpDecorate %in_var_BEZIERPOS Location 0
// CHECK-NEXT: OpDecorate %in_var_TANGENT Location 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// CHECK-SAME: %gl_TessCoord

// CHECK: OpDecorate %gl_TessCoord BuiltIn TessCoord
// CHECK: OpDecorate %gl_TessCoord Patch

// CHECK: %gl_TessCoord = OpVariable %_ptr_Input_v3float Input

Expand Down
1 change: 0 additions & 1 deletion tools/clang/test/CodeGenSPIRV/spirv.interface.ds.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ struct DsOut {
// CHECK: OpDecorateString %gl_PointSize UserSemantic "PSIZE"
// CHECK: OpDecorate %gl_TessCoord BuiltIn TessCoord
// CHECK: OpDecorateString %gl_TessCoord UserSemantic "SV_DomainLocation"
// CHECK: OpDecorate %gl_TessCoord Patch
// CHECK: OpDecorate %gl_TessLevelOuter BuiltIn TessLevelOuter
// CHECK: OpDecorateString %gl_TessLevelOuter UserSemantic "SV_TessFactor"
// CHECK: OpDecorate %gl_TessLevelOuter Patch
Expand Down
Loading