Erich Gubler
99a7773e65
fix(hlsl-out): use Interlocked<op> intrinsic for atomic integers ( #2294 )
...
We currently assume that we are using raw `RWByteAddressBuffer` methods for all atomic operations (`<pointer>.Interlocked<op>(<raw_byte_offset>, …)`), which is only true when we use `var<storage, read_write>` globals. For `var<workgroup>` globals, we need `Interlocked<op>(<pointer>, …)`, using the original expression as the first argument.
Fix this by branching on the `pointer`'s address space in `Atomic` statements, and implementing the workgroup address space case with intrinsics.
Remove atomic ops from `access`, add new `atomicOps` test.
Fixes #2284
2023-04-05 19:37:22 -07:00
..
2023-03-14 10:11:03 +01:00
2023-01-25 17:49:52 +01:00
2023-02-22 18:15:39 +01:00
2023-04-05 19:37:22 -07:00
2023-03-20 17:21:52 +01:00
2023-03-20 17:21:52 +01:00
2023-01-12 09:37:08 -08:00
2023-04-05 19:37:22 -07:00
2023-02-22 18:15:39 +01:00
2023-02-13 14:13:58 +01:00
2023-02-22 18:15:39 +01:00
2023-01-12 09:37:08 -08:00
2023-02-22 18:15:39 +01:00
2023-02-02 09:47:17 -08:00
2023-02-22 18:15:39 +01:00
2023-01-12 09:37:08 -08:00
2023-01-25 18:07:48 +01:00
2022-05-30 12:13:58 -07:00
2023-01-25 18:07:48 +01:00
2022-05-30 12:13:58 -07:00
2021-12-06 15:53:41 -05:00
2022-03-27 00:22:58 -07:00
2022-02-01 16:37:09 -08:00
2022-10-24 09:20:57 -07:00
2021-11-26 11:36:46 -05:00
2022-03-27 00:22:58 -07:00
2022-06-24 17:47:07 -07:00
2021-09-15 18:48:18 -04:00
2022-04-15 18:02:48 +01:00
2021-09-15 18:48:18 -04:00
2022-12-09 10:21:58 -08:00
2022-04-15 18:02:48 +01:00
2021-09-15 18:48:18 -04:00
2022-04-15 18:02:48 +01:00
2023-02-22 18:15:39 +01:00
2022-04-29 20:06:09 +02:00
2023-02-02 13:08:18 +01:00
2023-02-02 13:08:18 +01:00
2023-03-20 13:43:13 +01:00
2023-01-25 18:07:48 +01:00
2022-04-15 18:02:48 +01:00
2021-12-22 09:41:07 -05:00
2022-04-15 18:02:48 +01:00
2021-09-15 18:48:18 -04:00
2023-01-12 09:37:08 -08:00
2021-12-18 11:46:49 -05:00
2023-02-13 14:13:58 +01:00
2023-02-22 18:15:39 +01:00
2022-04-29 20:06:09 +02:00
2023-01-25 18:07:48 +01:00
2022-04-29 20:06:09 +02:00
2023-02-16 15:33:24 -08:00
2023-02-16 15:33:24 -08:00
2022-09-01 17:31:50 -07:00
2021-12-27 00:29:33 +00:00
2023-02-20 20:40:59 +01:00
2023-04-04 12:35:32 +02:00
2023-02-16 18:16:49 -05:00
2022-06-30 17:58:47 +01:00
2023-02-16 18:16:49 -05:00
2022-06-30 17:58:47 +01:00
2021-09-15 18:48:18 -04:00
2023-02-16 15:49:54 -08:00
2023-02-22 18:15:39 +01:00
2022-04-17 15:56:54 +02:00
2021-11-26 11:36:46 -05:00
2022-03-27 00:22:58 -07:00
2021-11-26 11:36:46 -05:00
2022-03-27 00:22:58 -07:00
2023-01-25 18:07:48 +01:00
2022-08-29 11:58:02 +01:00
2023-01-25 18:07:48 +01:00
2023-01-12 09:37:08 -08:00
2023-03-22 17:23:07 -07:00
2023-03-22 17:23:07 -07:00
2023-02-22 18:15:39 +01:00
2023-02-22 18:15:39 +01:00
2021-09-15 18:48:18 -04:00
2023-01-12 09:37:08 -08:00
2023-02-22 18:15:39 +01:00
2022-04-29 20:06:09 +02:00
2023-02-01 12:24:05 +01:00
2023-02-01 12:24:05 +01:00
2021-09-15 18:48:18 -04:00
2023-03-17 00:15:44 +01:00
2021-09-15 18:48:18 -04:00
2022-04-15 18:02:48 +01:00
2023-04-04 12:35:32 +02:00
2022-02-19 10:42:44 -05:00
2023-02-22 18:15:39 +01:00
2023-01-25 18:07:48 +01:00