Zhaoming Jiang
0fb4e2c608
tint: f16 literal in WGSL lexer and check subnormal f32/f16 hex literal
...
This patch
1. Add F16 literal support in WGSL lexer and parser for both decimal and
hex form. Also fix the f16::Quantize method to deal with subnormal cases
correctly.
2. Fix exactly-representable check for hex f32 literal to deal with
subnormal cases.
3. Implement and fix related unitests for f16 and f32.
Bug: tint:1473, tint:1502
Change-Id: Ia4a7c9144ef9323fb23b2200a64e1ca8afb6c334
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/93100
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
Commit-Queue: David Neto <dneto@google.com>
2022-06-10 18:18:35 +00:00
..
2022-05-31 15:22:21 +00:00
2022-05-31 20:40:59 +00:00
2022-05-01 14:40:55 +00:00
2022-05-05 20:23:40 +00:00
2022-05-10 17:30:15 +00:00
2022-05-05 20:23:40 +00:00
2022-05-19 21:50:59 +00:00
2022-06-07 13:55:34 +00:00
2022-06-07 13:55:34 +00:00
2022-05-19 21:50:59 +00:00
2022-06-07 13:55:34 +00:00
2022-05-10 17:30:15 +00:00
2022-05-11 13:50:33 +00:00
2022-06-01 23:57:20 +00:00
2022-06-01 23:57:20 +00:00
2022-05-10 17:30:15 +00:00
2022-05-20 19:55:50 +00:00
2022-05-16 20:54:42 +00:00
2022-05-16 20:54:42 +00:00
2022-05-16 20:54:42 +00:00
2022-05-10 17:30:15 +00:00
2022-05-13 12:01:11 +00:00
2022-05-01 14:40:55 +00:00
2022-06-07 13:55:34 +00:00
2022-06-07 13:55:34 +00:00
2022-05-01 14:40:55 +00:00
2022-05-10 17:30:15 +00:00
2022-05-05 20:23:40 +00:00
2022-06-01 23:57:20 +00:00
2022-06-01 23:57:20 +00:00
2022-06-01 23:57:20 +00:00
2022-06-02 14:36:10 +00:00
2022-06-01 23:57:20 +00:00
2022-05-01 14:40:55 +00:00
2022-05-01 14:40:55 +00:00
2022-06-07 13:55:34 +00:00
2022-05-10 17:30:15 +00:00
2022-05-01 14:40:55 +00:00
2022-05-05 20:23:40 +00:00
2022-05-20 12:28:00 +00:00
2022-05-26 08:31:45 +00:00
2022-05-27 20:22:26 +00:00
2022-05-01 14:40:55 +00:00
2022-06-01 20:34:40 +00:00
2022-05-25 21:07:04 +00:00
2022-06-10 18:18:35 +00:00
2022-06-10 18:18:35 +00:00
2022-06-01 20:34:40 +00:00
2022-05-04 22:18:49 +00:00
2022-05-04 22:18:49 +00:00
2022-05-05 20:23:40 +00:00
2022-05-10 17:30:15 +00:00
2022-05-05 20:23:40 +00:00
2022-05-05 20:23:40 +00:00
2022-05-05 20:23:40 +00:00
2022-05-10 17:30:15 +00:00
2022-05-05 20:23:40 +00:00
2022-05-19 21:50:59 +00:00
2022-06-07 13:55:34 +00:00
2022-06-10 17:55:23 +00:00
2022-06-10 17:55:23 +00:00
2022-05-11 22:05:15 +00:00
2022-06-07 13:55:34 +00:00
2022-05-01 14:40:55 +00:00
2022-05-31 20:40:59 +00:00
2022-05-24 21:42:03 +00:00
2022-05-19 23:05:40 +00:00
2022-05-10 17:30:15 +00:00