Commit ffe419d
committed
vulkan_spriv: disable optimizations, target newer SPIR-V, add more type mapping
Any decent driver will compile down to the same exact binary:
7900:
perf:
[nlmeans_vulkan @ 0x7fcb50003740] Shader nlmeans_weights size: 9192 binary (33796 SPIR-V)
[nlmeans_vulkan @ 0x7fcb50003740] Shader nlmeans_denoise size: 1808 binary (7044 SPIR-V)
[bwdif_vulkan @ 0x7fa2400037f0] Shader bwdif size: 5360 binary (19968 SPIR-V)
size:
[nlmeans_vulkan @ 0x7fe4a4003740] Shader nlmeans_weights size: 9192 binary (34036 SPIR-V)
[nlmeans_vulkan @ 0x7f5bf4003740] Shader nlmeans_denoise size: 1808 binary (7044 SPIR-V)
[bwdif_vulkan @ 0x7fdc7c0037f0] Shader bwdif size: 5360 binary (19968 SPIR-V)
none:
[nlmeans_vulkan @ 0x7f1710003740] Shader nlmeans_weights size: 9192 binary (47220 SPIR-V)
[nlmeans_vulkan @ 0x7f1710003740] Shader nlmeans_denoise size: 1808 binary (8448 SPIR-V)
[bwdif_vulkan @ 0x7fd46c0037f0] Shader bwdif size: 5360 binary (29788 SPIR-V)
Ada:
perf:
[nlmeans_vulkan @ 0x7f43c0003ec0] Shader nlmeans_weights size: 24098 binary (33796 SPIR-V)
[nlmeans_vulkan @ 0x7f43c0003ec0] Shader nlmeans_denoise size: 8182 binary (7044 SPIR-V)
[bwdif_vulkan @ 0x7f9744003f70] Shader bwdif size: 13507 binary (19968 SPIR-V)
1000 frames nlmeans:
0.36user 2.81system 0:42.18elapsed 7%CPU (0avgtext+0avgdata 355344maxresident)k
100000 frames bwdif=mode=send_field:
8.79user 3.49system 0:20.27elapsed 60%CPU (0avgtext+0avgdata 352664maxresident)k
size:
[nlmeans_vulkan @ 0x7f2a74003ec0] Shader nlmeans_weights size: 24073 binary (34036 SPIR-V)
[nlmeans_vulkan @ 0x7f2a74003ec0] Shader nlmeans_denoise size: 8186 binary (7044 SPIR-V)
[bwdif_vulkan @ 0x7fc438003f70] Shader bwdif size: 13510 binary (19968 SPIR-V)
1000 frames nlmeans:
0.35user 2.68system 0:41.95elapsed 7%CPU (0avgtext+0avgdata 328752maxresident)k
100000 frames bwdif=mode=send_field:
8.78user 3.48system 0:20.21elapsed 60%CPU (0avgtext+0avgdata 329440maxresident)k
none:
[nlmeans_vulkan @ 0x7fcb64003ec0] Shader nlmeans_weights size: 29789 binary (47220 SPIR-V)
[nlmeans_vulkan @ 0x7fcb64003ec0] Shader nlmeans_denoise size: 8467 binary (8448 SPIR-V)
[bwdif_vulkan @ 0x7f3234003f70] Shader bwdif size: 16630 binary (29788 SPIR-V)
1000 frames nlmeans:
0.33user 2.71system 0:42.05elapsed 7%CPU (0avgtext+0avgdata 351696maxresident)k
100000 frames bwdif=mode=send_field:
8.75user 3.54system 0:20.23elapsed 60%CPU (0avgtext+0avgdata 348996maxresident)k
Non-zero optimizations also disable some debugging, which may make it harder
for profilers.1 parent f15514e commit ffe419d
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
52 | | - | |
53 | | - | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
56 | | - | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
0 commit comments