agx: Test fsat+f2f16 together
Something I hit when mucking with this pass. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18687>
This commit is contained in:

committed by
Marge Bot

parent
3e86522cf2
commit
52467c2d1e
@@ -97,6 +97,17 @@ TEST_F(Optimizer, FusedFnegCancel)
|
||||
agx_fmul_to(b, wz, wx, agx_abs(wx)));
|
||||
}
|
||||
|
||||
TEST_F(Optimizer, FmulFsatF2F16)
|
||||
{
|
||||
CASE({
|
||||
agx_index tmp = agx_temp(b->shader, AGX_SIZE_32);
|
||||
agx_fmov_to(b, tmp, agx_fmul(b, wx, wy))->saturate = true;
|
||||
agx_fmov_to(b, hx, tmp);
|
||||
}, {
|
||||
agx_fmul_to(b, hx, wx, wy)->saturate = true;
|
||||
});
|
||||
}
|
||||
|
||||
TEST_F(Optimizer, Copyprop)
|
||||
{
|
||||
CASE(agx_fmul_to(b, wz, wx, agx_mov(b, wy)), agx_fmul_to(b, wz, wx, wy));
|
||||
|
Reference in New Issue
Block a user