pan/bi: Add a unit test for fsat(reg.yx)
This would have caught the issue from the previous commit. Split out to make backporting the previous change less onerous. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20683>
This commit is contained in:

committed by
Marge Bot

parent
ed46c617b0
commit
2f97883276
@@ -107,3 +107,9 @@ TEST_F(LowerSwizzle, ShiftWithNot)
|
||||
CASE(bi_lshift_and_v4i8_to(b, reg, y, bi_neg(x3210), z),
|
||||
bi_lshift_and_v4i8_to(b, reg, y, bi_neg(bi_swz_v4i8(b, x3210)), z));
|
||||
}
|
||||
|
||||
TEST_F(LowerSwizzle, FClampSwap)
|
||||
{
|
||||
CASE(bi_fclamp_v2f16_to(b, reg, bi_swz_16(x, 1, 0)),
|
||||
bi_swz_v2i16_to(b, reg, bi_swz_16(bi_fclamp_v2f16(b, x), 1, 0)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user