r300: use nir lowering for ffloor
Negligible amount of instructions saved on RV530: total instructions in shared programs: 134970 -> 134963 (<.01%) instructions in affected programs: 2273 -> 2266 (-0.31%) helped: 9 HURT: 1 The one hurt shader is when we fail to recognize the x - ffract(x) pattern and skip the don't emit ftrunc optimization as implemented in the previous patch due to some non-trivial swizzles going on. Signed-off-by: Pavel Ondračka <pave.ondracka@gmail.com> Reviewed-by: Emma Anholt <emma@anholt.net> Acked-by: Filip Gawin <filip@gawin.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20208>
This commit is contained in:

committed by
Marge Bot

parent
a93bc6afc4
commit
31f678626f
@@ -498,6 +498,7 @@ static int r300_get_video_param(struct pipe_screen *screen,
|
||||
.lower_extract_word = true, \
|
||||
.lower_fdiv = true, \
|
||||
.lower_fdph = true, \
|
||||
.lower_ffloor = true, \
|
||||
.lower_flrp32 = true, \
|
||||
.lower_flrp64 = true, \
|
||||
.lower_fmod = true, \
|
||||
|
Reference in New Issue
Block a user