Lionel Landwerlin
5ae8a78d8c
intel/fs: make use of load_ubo_uniform_block_intel
The principle is the same as the load_ssbo_uniform_block_intel.
Whenever we see a uniform offset, load the data only once in GRFs to
reduce register pressure.
Iris shader-db run on DG2 :
total instructions in shared programs: 23001325 -> 23094969 (0.41%)
instructions in affected programs: 1775989 -> 1869633 (5.27%)
helped: 764
HURT: 2097
helped stats (abs) min: 1 max: 102 x̄: 6.96 x̃: 2
helped stats (rel) min: 0.03% max: 16.91% x̄: 1.36% x̃: 0.63%
HURT stats (abs) min: 1 max: 2461 x̄: 47.19 x̃: 7
HURT stats (rel) min: <.01% max: 199.34% x̄: 5.91% x̃: 2.60%
95% mean confidence interval for instructions value: 25.43 40.03
95% mean confidence interval for instructions %-change: 3.60% 4.33%
Instructions are HURT.
total loops in shared programs: 5847 -> 5847 (0.00%)
loops in affected programs: 0 -> 0
helped: 0
HURT: 0
total cycles in shared programs: 839329852 -> 845491482 (0.73%)
cycles in affected programs: 130229434 -> 136391064 (4.73%)
helped: 1098
HURT: 2228
helped stats (abs) min: 1 max: 130102 x̄: 1340.64 x̃: 22
helped stats (rel) min: <.01% max: 64.25% x̄: 4.03% x̃: 0.71%
HURT stats (abs) min: 1 max: 185309 x̄: 3426.24 x̃: 87
HURT stats (rel) min: <.01% max: 92.85% x̄: 8.12% x̃: 3.82%
95% mean confidence interval for cycles value: 1342.16 2362.97
95% mean confidence interval for cycles %-change: 3.70% 4.52%
Cycles are HURT.
total spills in shared programs: 10768 -> 11856 (10.10%)
spills in affected programs: 9717 -> 10805 (11.20%)
helped: 25
HURT: 28
total fills in shared programs: 13720 -> 16258 (18.50%)
fills in affected programs: 12016 -> 14554 (21.12%)
helped: 25
HURT: 28
total sends in shared programs: 1034790 -> 1031266 (-0.34%)
sends in affected programs: 33416 -> 29892 (-10.55%)
helped: 1005
HURT: 0
helped stats (abs) min: 1 max: 22 x̄: 3.51 x̃: 3
helped stats (rel) min: 1.69% max: 60.00% x̄: 15.20% x̃: 14.08%
95% mean confidence interval for sends value: -3.72 -3.29
95% mean confidence interval for sends %-change: -15.82% -14.57%
Sends are helped.
LOST: 26
GAINED: 183
shader-db on a number of VK/DX titles on DG2 :
PERCENTAGE DELTAS Shaders Instrs Cycles
age_of_wonders_III 1928 +0.02% -0.19%
PERCENTAGE DELTAS Shaders Instrs Cycles Subgroup size Send messages Spill count Fill count Max live registers Max dispatch width
assassins_creed_odyssey 2119 +1.12% -0.42% -0.03% -0.29% -9.10% -4.26% -0.64% +0.65%
PERCENTAGE DELTAS Shaders Instrs Cycles Spill count Fill count Max live registers
aztec_ruins_high 269 -0.05% -0.45% -0.29% -7.27% -0.33%
PERCENTAGE DELTAS Shaders Instrs Cycles Max live registers Max dispatch width
dark_souls_3_dxvk_g2 1420 +0.09% +0.24% +0.21% +0.12%
(stats look bad, but it's just one shader affected)
PERCENTAGE DELTAS Shaders Instrs Cycles Spill count Fill count Scratch Memory Size Max live registers
fallout_4_dxvk_g2 1638 +0.67% +8.32% +16.02% +7.17% +100.00% +0.48%
PERCENTAGE DELTAS Shaders Instrs Cycles Send messages Spill count Fill count Max live registers Max dispatch width
red_dead_redemption2 5969 +0.16% -0.04% -0.04% +0.01% +0.05% -0.20% +0.04%
PERCENTAGE DELTAS Shaders Instrs Cycles Send messages Max live registers Max dispatch width
rise_of_the_tomb_raider_g2 12129 +2.19% +1.36% -1.23% -0.36% +2.04%
PERCENTAGE DELTAS Shaders Instrs Cycles Send messages Max live registers
shooter-game 693 +0.07% -0.89% -0.09% -0.09%
PERCENTAGE DELTAS Shaders Instrs Cycles Send messages Max live registers Max dispatch width
talos_g2 1140 +0.37% +3.80% -0.86% -0.67% +0.19%
PERCENTAGE DELTAS Shaders Instrs Cycles Max live registers Max dispatch width
total_war_warhammer2 477 +0.25% +0.66% -0.17% +0.10%
PERCENTAGE DELTAS Shaders Instrs Cycles Send messages Max live registers Max dispatch width
witcher_3_dxvk_g2 1074 +0.75% -10.45% -0.15% -0.16% -0.16%
PERCENTAGE DELTAS Shaders Instrs Cycles Send messages Max live registers
wolfenstein_youngblood 1111 +0.52% +0.66% -0.59% -0.03%
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23477>
2023-06-14 12:04:05 +00:00
..
2021-12-21 00:43:29 +00:00
2021-07-14 09:56:59 -07:00
2022-06-30 23:46:35 +00:00
2022-06-30 23:46:35 +00:00
2022-06-30 23:46:35 +00:00
2021-11-08 16:48:06 +00:00
2023-06-03 03:29:03 +00:00
2022-06-30 23:46:35 +00:00
2022-06-30 23:46:35 +00:00
2023-06-13 16:36:10 +00:00
2023-06-09 20:09:51 +00:00
2022-12-09 10:18:25 +00:00
2022-07-28 21:31:45 +00:00
2022-07-28 21:31:45 +00:00
2023-05-30 06:36:37 +00:00
2022-10-28 07:10:58 +00:00
2023-05-30 06:36:37 +00:00
2023-05-30 06:36:37 +00:00
2021-04-02 18:33:07 +00:00
2023-06-06 06:10:53 +00:00
2022-12-10 03:59:19 +00:00
2023-05-30 06:36:37 +00:00
2022-06-30 23:46:35 +00:00
2023-06-09 20:09:51 +00:00
2023-01-24 07:35:42 +00:00
2023-06-06 06:10:53 +00:00
2023-06-06 06:10:53 +00:00
2022-03-26 00:28:19 +00:00
2023-01-19 08:42:22 +00:00
2023-06-06 14:47:41 +00:00
2023-04-06 19:07:50 +00:00
2021-04-20 20:06:33 +00:00
2023-03-09 23:26:17 +00:00
2023-04-20 11:41:10 -07:00
2023-06-14 12:04:05 +00:00
2022-11-19 14:58:58 +00:00
2023-03-17 03:05:24 -07:00
2022-12-09 00:39:05 +00:00
2023-03-09 23:26:17 +00:00
2021-08-11 13:09:20 -07:00
2023-05-24 18:32:07 +00:00
2023-03-14 10:38:50 +00:00
2023-05-31 19:26:59 +00:00
2023-06-14 12:04:05 +00:00
2023-06-14 07:42:57 +00:00
2022-06-30 23:46:35 +00:00
2023-05-30 06:36:37 +00:00
2021-04-02 18:33:07 +00:00
2020-11-03 10:42:29 +00:00
2023-04-06 19:07:50 +00:00
2023-02-06 09:12:17 +00:00
2022-06-27 10:20:55 +00:00
2023-06-14 12:04:05 +00:00
2022-06-30 23:46:35 +00:00
2023-05-17 23:46:16 +00:00
2022-04-19 12:36:10 +03:00
2023-06-06 14:47:41 +00:00
2023-06-05 13:40:08 +00:00
2023-03-26 00:16:25 +00:00
2023-05-30 06:36:37 +00:00
2023-05-25 06:59:24 +00:00
2023-06-14 12:04:05 +00:00
2021-10-05 10:02:54 +00:00
2023-05-24 18:32:07 +00:00
2023-02-06 09:12:18 +00:00
2022-12-14 06:23:21 +00:00
2023-05-30 16:24:21 -04:00
2022-08-05 11:51:31 +00:00
2023-06-14 12:04:05 +00:00
2023-06-09 08:29:43 +03:00
2023-05-04 11:25:41 +00:00
2022-11-17 23:17:40 +00:00
2022-06-27 10:20:55 +00:00
2023-06-06 18:52:25 +00:00
2023-05-17 23:46:16 +00:00
2023-05-17 23:46:16 +00:00
2023-06-06 18:52:25 +00:00
2023-05-18 15:46:06 +02:00
2022-10-20 00:03:55 +00:00
2021-10-05 10:02:54 +00:00
2022-05-13 06:47:53 +00:00
2023-06-14 12:04:05 +00:00
2023-05-30 06:36:37 +00:00
2021-12-08 14:56:32 -08:00
2022-06-30 23:46:35 +00:00
2022-11-15 04:55:18 +00:00
2021-04-20 20:06:33 +00:00
2021-08-30 14:00:14 -07:00
2022-09-13 01:44:24 +00:00
2023-02-26 11:48:33 -08:00
2023-05-30 06:36:36 +00:00
2023-06-14 12:04:05 +00:00
2023-06-09 20:09:51 +00:00
2023-01-27 11:00:41 +00:00
2021-04-02 18:33:07 +00:00
2022-11-17 23:17:40 +00:00
2022-06-30 23:46:35 +00:00
2022-07-08 19:45:34 +00:00
2021-08-11 13:09:32 -07:00
2023-03-21 11:53:04 +00:00
2023-06-09 20:09:51 +00:00
2023-06-03 03:29:03 +00:00
2023-06-09 20:09:51 +00:00
2021-08-11 13:09:32 -07:00
2021-08-11 13:09:32 -07:00
2023-05-15 16:32:21 +00:00
2022-07-14 17:49:01 +00:00
2021-11-08 16:48:06 +00:00
2023-05-24 18:32:07 +00:00
2021-12-10 21:20:47 +00:00
2022-07-08 19:45:34 +00:00
2021-12-10 21:20:47 +00:00
2023-04-14 10:54:01 +00:00
2022-07-08 19:45:34 +00:00
2021-12-10 21:20:47 +00:00
2023-06-08 22:00:21 +00:00
2023-06-08 22:00:21 +00:00
2022-08-31 02:00:18 +00:00
2022-07-08 19:45:34 +00:00
2021-12-10 21:20:47 +00:00
2022-11-14 19:15:05 +00:00
2023-05-30 06:36:37 +00:00
2022-08-23 15:19:16 +00:00
2023-06-06 06:10:53 +00:00
2023-03-08 13:37:07 +00:00
2023-03-29 23:48:19 +00:00
2023-03-08 13:37:07 +00:00
2023-03-08 13:37:07 +00:00
2023-01-27 11:00:41 +00:00
2021-12-10 21:20:47 +00:00
2021-12-10 21:20:47 +00:00
2021-12-10 21:20:47 +00:00
2021-12-10 21:20:47 +00:00