BetterJdue
9fa652f7a2
d16 typed buffer loads round the exact UNORM/SNORM quotient once, as RDNA2 does (BUILD-161)
...
docs/design.md narrowed the f16 of a typed d16 buffer load from the f32 decode with round to nearest even, and
called that rounding inferred, not measured. tools/d16_format_probe.py measures it through tools/hw_oracle: every
UNORM8, SNORM8, UNORM10, UNORM16 and SNORM16 value through buffer_load_format_d16_x, tbuffer_load_format_d16_x
and buffer_load_format_x, in wave32 and wave64, against several candidate rules, with a 16_FLOAT load, the kept
high half of d16_x and the staged inputs as controls.
On an RX 6700 (gfx1031) the hardware rounds the exact quotient once, straight to f16. Rounding to f32 first is
1 ulp high on exactly four values (UNORM16 0xffaf and 0xffef, SNORM16 0x7ff7 and 0x8009); over every width up to
16 bits only two f32 quotients land on an f16 halfway point (0x3f7ff000, 0x3f7fb000). Gen.d16_norm_f16 takes the
f16 below for those two, for normalized formats only. The f32 (non-d16) result was already right.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-22 14:50:45 +01:00
..
2026-11-22 00:20:56 +01:00
2026-11-22 04:21:29 +00:00
2026-11-22 14:50:45 +01:00
2026-11-21 22:25:09 -03:00
2026-11-21 17:46:28 +01:00
2026-11-21 21:28:04 -03:00
2026-11-22 09:05:53 +01:00
2026-11-22 02:22:37 +00:00
2026-11-22 08:29:34 -03:00
2026-11-22 18:35:25 +05:30
2026-11-22 07:08:04 -05:00
2026-11-22 13:10:26 +05:30
2026-11-22 03:14:21 -05:00
2026-11-21 22:51:22 -07:00
2026-11-22 12:36:48 +01:00
2026-11-22 10:28:47 +00:00
2026-11-22 03:24:37 -06:00
2026-11-22 09:31:30 -03:00
2026-11-22 12:16:06 +01:00
2026-11-22 08:08:21 -05:00
2026-11-22 06:38:06 -05:00
2026-11-21 20:59:04 -05:00
2026-11-22 14:01:49 +01:00
2026-11-22 00:16:37 +01:00
2026-11-22 14:02:03 +01:00
2026-11-22 01:01:45 +01:00
2026-11-22 08:29:10 -03:00
2026-11-22 12:58:28 +01:00
2026-11-22 13:04:45 +01:00
2026-11-22 07:38:26 -05:00
2026-11-22 02:46:54 -06:00
2026-11-22 19:12:17 +08:00
2026-11-22 15:33:40 +08:00
2026-11-22 12:38:16 +05:30
2026-11-22 04:34:41 -04:00
2026-11-22 00:02:16 +00:00
2026-11-22 14:04:55 +01:00
2026-11-22 16:37:59 +10:00
2026-11-22 11:22:32 +00:00
2026-11-22 02:09:04 -05:00
2026-11-22 07:38:24 -05:00
2026-11-22 03:29:00 -06:00
2026-11-22 04:15:43 +05:45
2026-11-21 21:03:17 -03:00
2026-11-22 14:50:45 +01:00
2026-11-21 23:41:05 -04:00
2026-11-22 06:29:30 +01:00
2026-11-22 12:19:45 +01:00
2026-11-22 18:00:09 +06:00
2026-11-22 17:44:53 +08:00
2026-11-21 17:17:58 -07:00
2026-11-21 20:28:24 -03:00
2026-11-22 00:14:38 -03:00
2026-11-22 11:57:04 +02:00
2026-11-22 10:00:49 +01:00
2026-11-22 00:19:50 +01:00
2026-11-22 01:09:07 +01:00
2026-11-22 12:14:32 +01:00
2026-11-22 06:44:57 -06:00
2026-11-22 12:11:24 +05:30
2026-11-22 13:25:04 +02:00
2026-11-22 13:42:04 +01:00
2026-11-22 05:18:45 +01:00
2026-11-22 09:53:08 +00:00
2026-11-22 09:46:48 +00:00
2026-11-22 09:37:03 +05:30
2026-11-22 18:39:53 +08:00
2026-11-22 17:49:58 +05:30
2026-11-22 19:01:09 +08:00
2026-11-22 12:43:34 +01:00
2026-11-22 18:39:09 +08:00
2026-11-22 13:02:23 +01:00
2026-11-22 03:36:29 -06:00
2026-11-22 18:49:30 +08:00
2026-11-22 06:35:21 +01:00
2026-11-22 00:26:27 -06:00
2026-11-21 16:55:55 -05:00
2026-11-22 00:43:52 -05:00
2026-11-22 06:35:38 +01:00
2026-11-22 02:09:05 -05:00
2026-11-21 16:26:33 -06:00
2026-11-22 10:38:05 +01:00
2026-11-22 10:53:54 +01:00
2026-11-21 22:37:45 -05:00
2026-11-22 07:38:24 -05:00
2026-11-22 08:35:03 -05:00
2026-11-22 20:10:21 +08:00
2026-11-22 13:16:24 +01:00
2026-11-22 07:08:03 -05:00
2026-11-22 11:23:18 +01:00
2026-11-22 13:47:51 +01:00
2026-11-22 12:25:16 +05:30
2026-11-22 16:20:17 +05:30
2026-11-22 13:53:11 +01:00
2026-11-22 01:10:12 -04:00
2026-11-22 01:00:14 -03:00
2026-11-22 11:25:34 +01:00
2026-11-22 11:33:45 +00:00
2026-11-22 00:33:53 -05:00
2026-11-21 22:50:24 -05:00
2026-11-22 14:32:28 +03:00
2026-11-22 17:59:51 +05:30
2026-11-22 03:14:12 -05:00
2026-11-22 00:33:46 -05:00
2026-11-22 12:19:06 +05:30
2026-11-22 12:13:36 +02:00
2026-11-22 01:36:05 -07:00
2026-11-21 20:26:58 -05:00
2026-11-22 03:08:37 -08:00
2026-11-22 10:24:32 +00:00
2026-11-22 01:19:27 -08:00
2026-11-21 19:53:07 -05:00
2026-11-22 14:32:28 +03:00
2026-11-22 00:20:29 +01:00
2026-11-22 07:07:48 -05:00
2026-11-22 20:31:59 +08:00
2026-11-22 10:44:56 +00:00
2026-11-22 08:56:52 -03:00
2026-11-22 17:12:49 +05:30
2026-11-22 00:21:36 -08:00
2026-11-22 16:49:56 +05:30
2026-11-22 17:14:28 +10:00
2026-11-22 09:53:25 +01:00
2026-11-22 08:29:13 -03:00
2026-11-22 13:21:13 +01:00
2026-11-22 13:31:29 +01:00
2026-11-22 16:28:46 +05:30
2026-11-21 18:33:55 -03:00
2026-11-22 17:12:20 +05:30
2026-11-22 17:14:55 +05:30
2026-11-22 06:57:44 +00:00
2026-11-22 13:02:42 +01:00
2026-11-22 13:46:28 +01:00
2026-11-22 13:10:20 +05:30
2026-11-22 04:50:02 -03:00
2026-11-22 16:39:06 +05:30
2026-11-22 02:41:47 +01:00
2026-11-22 15:38:56 +05:30
2026-11-22 09:53:08 +00:00
2026-11-22 15:30:32 +03:00
2026-11-22 03:24:01 -06:00
2026-11-22 15:27:46 +05:30
2026-11-22 04:53:44 -03:00
2026-11-22 08:07:58 -05:00
2026-11-22 00:33:53 -05:00
2026-11-22 08:08:08 -05:00
2026-11-22 12:04:43 +05:30
2026-11-22 11:14:33 +00:00
2026-11-22 07:07:51 -05:00
2026-11-22 05:37:40 -05:00
2026-11-22 09:33:33 -03:00
2026-11-22 12:48:59 +02:00
2026-11-22 13:33:58 +01:00
2026-11-22 00:43:52 -05:00
2026-11-22 08:08:04 -05:00
2026-11-22 09:40:38 +01:00
2026-11-22 06:08:09 -05:00
2026-11-22 13:10:26 +05:30
2026-11-22 07:38:09 -05:00
2026-11-22 05:06:11 -03:00
2026-11-22 14:04:59 +01:00
2026-11-22 05:00:37 -06:00
2026-11-22 04:34:11 -03:00
2026-11-22 15:36:15 +03:00
2026-11-21 13:51:22 -05:00
2026-11-22 05:03:24 -03:00
2026-11-22 12:28:37 +05:30
2026-11-22 17:42:12 +05:30
2026-11-22 01:19:27 -08:00
2026-11-22 13:18:55 +01:00
2026-11-22 06:38:05 -05:00
2026-11-22 14:35:05 +03:00
2026-11-22 02:08:48 +01:00
2026-11-22 13:04:52 +03:00
2026-11-22 11:22:32 +00:00
2026-11-22 00:51:05 +00:00
2026-11-22 13:12:19 +01:00
2026-11-21 23:48:32 -06:00
2026-11-22 19:13:28 +07:00
2026-11-22 16:59:53 +05:30
2026-11-22 08:29:39 -03:00
2026-11-22 10:51:30 +01:00
2026-11-22 12:42:09 +01:00
2026-11-21 21:10:58 -03:00
2026-11-22 04:45:30 -06:00
2026-11-22 11:27:00 +00:00
2026-11-22 14:04:59 +01:00
2026-11-22 16:04:49 +08:00
2026-11-22 06:57:22 -03:00
2026-11-22 08:08:36 -05:00
2026-11-22 20:31:59 +08:00
2026-11-22 14:03:22 +01:00
2026-11-22 16:39:14 +04:00
2026-11-22 06:18:55 -06:00
2026-11-22 12:14:36 +05:30
2026-11-22 13:33:09 +01:00
2026-11-22 12:13:12 +01:00
2026-11-22 12:18:39 +01:00
2026-11-22 14:32:28 +03:00
2026-11-22 15:04:18 +06:00
2026-11-22 06:56:16 -06:00
2026-11-22 07:08:27 +01:00
2026-11-22 17:08:54 +05:30
2026-11-22 02:29:16 -06:00
2026-11-22 07:38:19 -05:00
2026-11-22 12:49:36 +01:00
2026-11-22 12:50:28 +00:00
2026-11-22 12:52:58 +00:00
2026-11-22 13:58:40 +01:00
2026-11-22 05:24:07 -04:00
2026-11-22 13:19:18 +01:00