Antonio Maiorano
8fbfacfd43
tint: fix insertBits edge case
...
If count is highest and offset is non-zero, or vice-versa, we'd overflow
the count + offset > bit-width check. This CL fixes this case.
Also folded in error tests into extractBits and insertBits.
Bug: tint:1581
Bug: chromium:53440
Change-Id: Id1e9e737b8076e8075da5992a41d18b6b7c8afd4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110482
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-11-17 00:35:49 +00:00
..
2022-10-03 14:05:23 +00:00
2022-10-13 13:33:25 +00:00
2022-10-03 14:05:23 +00:00
2022-10-03 14:05:23 +00:00
2022-10-03 14:05:23 +00:00
2022-10-03 14:05:23 +00:00
2022-11-02 07:49:23 +00:00
2022-08-31 22:59:08 +00:00
2022-11-14 15:29:29 +00:00
2022-11-09 20:55:33 +00:00
2022-10-13 13:33:25 +00:00
2022-08-31 22:59:08 +00:00
2022-11-09 16:47:19 +00:00
2022-10-03 14:05:23 +00:00
2022-10-19 15:55:02 +00:00
2022-11-14 21:20:05 +00:00
2022-11-17 00:35:49 +00:00
2022-10-13 19:27:30 +00:00
2022-10-17 16:11:02 +00:00
2022-10-13 19:27:30 +00:00
2022-10-13 19:27:30 +00:00
2022-11-14 21:20:05 +00:00
2022-10-17 16:11:02 +00:00
2022-11-17 00:35:49 +00:00
2022-11-16 23:02:39 +00:00
2022-11-15 00:30:33 +00:00
2022-11-15 00:30:33 +00:00
2022-11-15 00:30:33 +00:00
2022-11-09 20:55:33 +00:00
2022-10-13 13:33:25 +00:00
2022-10-20 13:38:28 +00:00
2022-11-09 20:11:43 +00:00
2022-10-13 13:33:25 +00:00
2022-10-03 14:05:23 +00:00
2022-10-20 13:38:28 +00:00
2022-10-20 13:38:28 +00:00
2022-10-20 13:38:28 +00:00
2022-10-20 13:38:28 +00:00
2022-10-20 13:38:28 +00:00
2022-10-28 15:58:38 +00:00
2022-11-14 15:29:29 +00:00
2022-10-25 23:37:07 +00:00
2022-11-16 23:02:39 +00:00
2022-10-20 13:38:28 +00:00
2022-10-03 14:05:23 +00:00
2022-10-03 14:05:23 +00:00
2022-11-15 18:39:38 +00:00
2022-11-02 07:49:23 +00:00
2022-10-03 14:05:23 +00:00
2022-10-03 14:05:23 +00:00
2022-11-09 19:58:59 +00:00
2022-06-01 20:34:40 +00:00
2022-10-17 16:11:02 +00:00
2022-10-31 17:26:10 +00:00
2022-11-15 00:30:33 +00:00
2022-11-15 00:30:33 +00:00
2022-11-09 12:16:56 +00:00
2022-05-04 22:18:49 +00:00
2022-11-09 20:55:33 +00:00
2022-10-20 13:38:28 +00:00
2022-10-13 17:23:06 +00:00
2022-10-03 14:05:23 +00:00
2022-09-26 15:54:55 +00:00
2022-09-07 22:25:24 +00:00
2022-10-20 13:38:28 +00:00
2022-10-31 17:26:10 +00:00
2022-11-15 00:20:24 +00:00
2022-11-15 00:30:33 +00:00
2022-10-26 00:27:38 +00:00
2022-11-09 19:58:59 +00:00
2022-10-03 14:05:23 +00:00
2022-11-15 00:30:33 +00:00
2022-11-15 00:30:33 +00:00
2022-10-20 13:38:28 +00:00
2022-11-02 18:14:59 +00:00