Skip to content

Commit 09149c9

Browse files
committed
Cleanup. Switch to default validation so we get 1 ULP of tolerance for floating point ops for now.
1 parent f0d5ab2 commit 09149c9

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

tools/clang/unittests/HLSLExec/LongVectorTestData.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,8 @@ INPUT_SET(InputSet::SelectCond, 0, 1);
349349
END_INPUT_SETS()
350350

351351
BEGIN_INPUT_SETS(HLSLHalf_t)
352-
INPUT_SET(InputSet::Default1, -1.0, 1.0);
353-
// INPUT_SET(InputSet::Default1, -1.0, -1.0, 1.0, -0.01, 1.0, -0.01, 1.0, -0.01,
354-
// 1.0, -0.01);
352+
INPUT_SET(InputSet::Default1, -1.0, -1.0, 1.0, -0.01, 1.0, -0.01, 1.0, -0.01,
353+
1.0, -0.01);
355354
INPUT_SET(InputSet::Default2, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0,
356355
-1.0);
357356
INPUT_SET(InputSet::Default3, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0,

tools/clang/unittests/HLSLExec/LongVectors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ FLOAT_SPECIAL_OP(OpType::IsNan, (std::isnan(A)));
12651265
//
12661266

12671267
#define WAVE_ACTIVE_OP(OP, IMPL) \
1268-
template <typename T> struct Op<OP, T, 1> : StrictValidation { \
1268+
template <typename T> struct Op<OP, T, 1> : DefaultValidation<T> { \
12691269
T operator()(T A, T WaveSize) { return IMPL; } \
12701270
};
12711271

tools/clang/unittests/HLSLExec/ShaderOpArith.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4141,6 +4141,7 @@ void MSMain(uint GID : SV_GroupIndex,
41414141
#else
41424142
const uint32_t OutNum = NUM;
41434143
#endif
4144+
41444145
#if IS_UNARY_OP
41454146
vector<OUT_TYPE, OutNum> OutputVector = FUNC(Input1);
41464147
#elif IS_BINARY_OP

0 commit comments

Comments
 (0)