mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
microsoft/clc: Improve clc_compiler_test.cpp to use defined expect value
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36723>
This commit is contained in:
parent
c2f6efbc8a
commit
f12ad5da70
1 changed files with 3 additions and 2 deletions
|
|
@ -347,6 +347,7 @@ TEST_F(ComputeTest, ret_private_ptr)
|
|||
run_shader(kernel_source, out.size(), 1, 1, out);
|
||||
for (int i = 0; i < out.size(); ++i) {
|
||||
EXPECT_EQ(out[i].ptr, expected_ptr[i]);
|
||||
EXPECT_EQ(out[i].value, expected_value[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1239,8 +1240,8 @@ TEST_F(ComputeTest, sin)
|
|||
};
|
||||
run_shader(kernel_source, inout.size(), 1, 1, inout);
|
||||
for (int i = 0; i < inout.size(); ++i) {
|
||||
EXPECT_FLOAT_EQ(inout[i].in, inout[i].in);
|
||||
EXPECT_FLOAT_EQ(inout[i].clc, inout[i].clc);
|
||||
EXPECT_FLOAT_EQ(inout[i].in, expected[i].in);
|
||||
EXPECT_FLOAT_EQ(inout[i].clc, expected[i].clc);
|
||||
EXPECT_NEAR(inout[i].clc, inout[i].native, 0.008f); // range from DXIL spec
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue