aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVasily Khoruzhick <[email protected]>2020-03-10 01:30:14 -0700
committerVasily Khoruzhick <[email protected]>2020-03-16 16:28:33 -0700
commit2756b629171f61ca8e162be7b332e91a62c5c978 (patch)
tree052810b07014c013f15891064401bc0925f3ffe5 /include
parentb7d89476f1e7d0f3b9e751887f42b750a5ec216e (diff)
lima/gpir: add better lowering for ftrunc
GP doesn't support ftrunc natively and unfortunately one in generic opt_algebraic is not GP-friendly either. Introduce our own lowering that utilizes fsign() that GP supports: ftrunc(a) = fmul(fsign(a), ffloor(fmax(a, -a))) Tested-by: Andreas Baierl <[email protected]> Reviewed-by: Andreas Baierl <[email protected]> Signed-off-by: Vasily Khoruzhick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4126>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions