URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fef6e6588bb6af68e06fd7c560dac18024a23519
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 15:13:53 2023 -0800
ci: Update traces expectations for gutting glsl opt_algebraic.
All look like harmless changes.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f53188f18d3f81416c8a3e5f3f7909a3fbdaa31
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 13:12:24 2023 -0800
glsl: Remove unused as_rvalue_to_saturate().
This is not where saturate recognition happens. Dead code since
5598458e6923 ("i965/vec4: Remove try_emit_saturate") in 2014!
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d76fb3b2b1ac840e814bd2c49e24112c99eaf168
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 13:16:40 2023 -0800
glsl/opt_algebraic: Drop the flrp recognizer.
No change to r300.
freedreno looks mixed but slightly positive in instructions:
total instructions in shared programs: 11012472 -> 11012453 (<.01%)
instructions in affected programs: 8250 -> 8231 (-0.23%)
helped: 16
HURT: 50
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=579aca894fd8b7b3c6ef82206b86aaf58bdf7d71
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 13:01:13 2023 -0800
glsl/opt_algebraic: Drop the ftrunc pattern recognizer.
Now that it's in NIR, there's no change to r300 or freedreno shader-db
when we do.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6d52e6fd2c53355ee67d4da7518b2c59d90598eb
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:59:16 2023 -0800
nir: Port a floor->truncate algebraic opt pattern from GLSL.
Prevents regression when dropping code from the GLSL optimizer.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6229d34b91506fadb3337c5d845d7d95ff4179a2
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:44:40 2023 -0800
glsl/opt_algebraic: Drop some fmul simplifications.
Looks like mostly noise, trending slightly positively.
freedreno:
total instructions in shared programs: 11012781 -> 11012472 (<.01%)
instructions in affected programs: 114072 -> 113763 (-0.27%)
helped: 123
HURT: 153
r300:
total instructions in shared programs: 1338236 -> 1337897 (-0.03%)
instructions in affected programs: 3460 -> 3121 (-9.80%)
helped: 61
HURT: 11
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4bf65ce221982039855ea154b460c5b01104b896
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:39:41 2023 -0800
glsl/opt_algebraic: Drop the flrp/ffma simplifiers.
NIR seems to do a better job. Freedreno:
total instructions in shared programs: 11013096 -> 11012781 (<.01%)
instructions in affected programs: 258358 -> 258043 (-0.12%)
helped: 470
HURT: 269
r300:
total instructions in shared programs: 1338237 -> 1338236 (<.01%)
instructions in affected programs: 161 -> 160 (-0.62%)
helped: 1
HURT: 0
total presub in shared programs: 45127 -> 44881 (-0.55%)
presub in affected programs: 1719 -> 1473 (-14.31%)
helped: 246
HURT: 0
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f632ce764c0337a8d3fba1b63d218e17d6e058a
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:29:37 2023 -0800
glsl/opt_algebraic: Drop no-op pack/unpack optimization.
No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d589760f44d762e313b70918ec490db51f87d9c9
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:27:07 2023 -0800
glsl/opt_algebraic: Drop the eq/neq add-removal optimization.
No change on freedreno or r300 shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d352bd973768580d1084b758330495a52125abcd
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:24:49 2023 -0800
glsl/opt_algebraic: Drop scalar all_eq/any_neq -> eq/neq opt.
No change in r300 or freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=62afead36fde959df901dc025d534fcc19b7cebe
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:10:32 2023 -0800
glsl/opt_algebraic: Drop fdot 0-channel optimizations.
No change on i915g shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef02581590c951f090d95d53ebefc5f365f3c890
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:22:03 2023 -0800
nir: Add optimization for fdot(x, 0) -> 0.
We had all these nice fdot opts to drop individual channels that were 0,
but nothing handling it being entirely 0! Avoids r300g regression when
dropping them from GLSL.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b328c97e112ddf077b061f20a0d9f3c904e857a7
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:08:55 2023 -0800
glsl/opt_algebraic: Drop csel(true/false, x, y) optimization.
No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=652ff42f14958c922b68d4dcbb46701e9ce593b4
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:04:34 2023 -0800
glsl/opt_algebraic: Drop x + -x -> 0 optimization.
No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=69b178ac9099dff3bb84f195b5167bc41493e6f2
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:03:34 2023 -0800
glsl/opt_algebraic: Drop add/sub with 0 optimizations.
Looks like minor instruction selection noise in freedreno shader-db:
total instructions in shared programs: 11013100 -> 11013096 (<.01%)
instructions in affected programs: 2714 -> 2710 (-0.15%)
helped: 8
HURT: 6
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6908fc8acd31db91b5cb40383ce6d6d49bb0a9a
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 12:00:24 2023 -0800
glsl/opt_algebraic: Drop fdiv(1,x) -> frcp(x) and fdiv(x,1) -> x
optimizations.
No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4fc9342fc61efb7bba339d19dffd317b59c1f887
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 11:59:18 2023 -0800
glsl/opt_algebraic: Drop and/or/xor optimizations.
NIR has them, and if anything freedreno shader-db prefers that NIR sees
them:
total instructions in shared programs: 11013112 -> 11013100 (<.01%)
instructions in affected programs: 26266 -> 26254 (-0.05%)
helped: 4
HURT: 0
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ab7a9b4538355946c1947546d2b9f2b10724e335
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 11:56:08 2023 -0800
glsl/opt_algebraic: Drop rcp optimizations.
No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b53d4b8250ffab0137b51bea7f0832a010c8eae
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 11:54:15 2023 -0800
glsl/opt_algebraic: Drop pow optimizations.
These should all be covered by NIR. Minor shader-db changes on freedreno,
which appear to be scheduling noise.
total instructions in shared programs: 11013132 -> 11013112 (<.01%)
instructions in affected programs: 3408 -> 3388 (-0.59%)
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb1b37e6c12a81b10cdae5f56750fc7b6e91fe47
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 11:48:05 2023 -0800
glsl/opt_algebraic: Drop shifts of 0 optimizations.
No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=71c0c73f8e48f62ea7f58587749ada6e31a2695f
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 11:45:20 2023 -0800
glsl/opt_algebraic: drop fsat(fadd(b2f(x), b2f(y))) -> b2f(ior(x, y)) opt.
No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=144b61437a36fb105ce5b5c18cd0e42b88bad2d8
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 11:43:23 2023 -0800
glsl/opt_algebraic: Drop f2i(trunc(x)) -> f2i(x) optimization.
No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=47657b2ffe9587a4b1343ffc91fa663b8ec8db6e
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 11:39:18 2023 -0800
glsl/opt_algebraic: Drop -(-x) -> x optimization.
No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=766f551cb564233f56f9d80cb79a85a0bf490e8d
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 11:38:14 2023 -0800
glsl/opt_algebraic: Drop abs(-x) -> abs(x) and abs(abs(x)) -> abs(x).
NIR does this. No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a8a50106eebab2af5b88f7aab8c726453c238ad
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 11:36:24 2023 -0800
glsl/opt_algebraic: Drop pow-recognizer.
NIR handles pow recognizing, too. No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d79061dba1ef40eb52db75dd1f558e1715d4037f
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 11:34:57 2023 -0800
glsl/opt_algebraic: Drop log(exp(x)) -> x and exp(log(x)) -> x
optimisations.
No change on freedreno shader-db.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2bd0343ba073cc89351ccc6cf19db8b720c2306e
Author: Emma Anholt <[email protected]>
Date: Wed Feb 22 11:33:06 2023 -0800
glsl/opt_algebraic: Drop ~~x == x transformation.
No change on freedreno shader-db.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>