diff options
author | Rhys Perry <[email protected]> | 2020-02-04 11:42:17 +0000 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-13 10:53:37 +0000 |
commit | aca2458d1bf5c38f5291efa27712868d45ad8231 (patch) | |
tree | 7b6a4a82648daec760c2b67022b1d1f55bf0e5c6 /src/compiler/nir/tests | |
parent | 0c1ba69a27090d3ef000943b47468705fe0454c4 (diff) |
nir: fix nir_const_value_as_uint bit size in load/store vectorizer tests
Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3690>
Diffstat (limited to 'src/compiler/nir/tests')
-rw-r--r-- | src/compiler/nir/tests/load_store_vectorizer_tests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/nir/tests/load_store_vectorizer_tests.cpp b/src/compiler/nir/tests/load_store_vectorizer_tests.cpp index cd623704fc3..0d749debd4c 100644 --- a/src/compiler/nir/tests/load_store_vectorizer_tests.cpp +++ b/src/compiler/nir/tests/load_store_vectorizer_tests.cpp @@ -961,10 +961,10 @@ TEST_F(nir_load_store_vectorize_test, ssbo_store_adjacent_8_8_16) ASSERT_EQ(val->bit_size, 8); ASSERT_EQ(val->num_components, 4); nir_const_value *cv = nir_instr_as_load_const(val->parent_instr)->value; - ASSERT_EQ(nir_const_value_as_uint(cv[0], 32), 0x10); - ASSERT_EQ(nir_const_value_as_uint(cv[1], 32), 0x20); - ASSERT_EQ(nir_const_value_as_uint(cv[2], 32), 0x30); - ASSERT_EQ(nir_const_value_as_uint(cv[3], 32), 0x0); + ASSERT_EQ(nir_const_value_as_uint(cv[0], 8), 0x10); + ASSERT_EQ(nir_const_value_as_uint(cv[1], 8), 0x20); + ASSERT_EQ(nir_const_value_as_uint(cv[2], 8), 0x30); + ASSERT_EQ(nir_const_value_as_uint(cv[3], 8), 0x0); } TEST_F(nir_load_store_vectorize_test, ssbo_store_adjacent_32_32_64) |