Skip to content
Open
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
2 changes: 2 additions & 0 deletions tools/clang/lib/CodeGen/CGHLSLMS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3991,6 +3991,8 @@ RValue CGMSHLSLRuntime::EmitHLSLBuiltinCallExpr(CodeGenFunction &CGF,
// Not support half Eval yet.
allOperandImm = false;
break;
} else if (operand->getType()->isVectorTy()) {
allOperandImm = false;
}
}
if (allOperandImm) {
Expand Down
7 changes: 7 additions & 0 deletions tools/clang/test/DXC/min16vector_constant_max.hlsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Validate that the offsets for a min16float vector is correct if 16-bit types aren't enabled
// RUN: %dxc -T ps_6_0 -Od -Zi -Qembed_debug %s | FileCheck %s

void main( out min16float4 outColor : SV_Target0)
{
outColor = max( min16float4 (0,0,0,0), min16float4 (0,0,0,0));
}
Loading