dawn-cmake/test/tint/builtins/gen/reverseBits
Antonio Maiorano ab4c035762 tint: fix HLSL countOneBits and reverseBits for i32 args
These two functions in HLSL only accept and return uint. Thus, if the
result of these calls is passed to a function that wants int, it will
fail, or call the uint overload if one exists. Fixed by casting the
result to int if the arg is int.

Bug: tint:1550
Change-Id: Id4c0970a29ac4c83ee5b78be8d2762e05e4a3f03
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/91001
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-05-20 01:58:40 +00:00
..
4dbd6f.wgsl tint: Rename and move builtin_table and builtin-gen 2022-05-06 15:13:01 +00:00
4dbd6f.wgsl.expected.glsl GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL. 2022-04-22 21:25:02 +00:00
4dbd6f.wgsl.expected.hlsl tint: fix HLSL countOneBits and reverseBits for i32 args 2022-05-20 01:58:40 +00:00
4dbd6f.wgsl.expected.msl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
4dbd6f.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
4dbd6f.wgsl.expected.wgsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
7c4269.wgsl tint: Rename and move builtin_table and builtin-gen 2022-05-06 15:13:01 +00:00
7c4269.wgsl.expected.glsl GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL. 2022-04-22 21:25:02 +00:00
7c4269.wgsl.expected.hlsl tint: fix HLSL countOneBits and reverseBits for i32 args 2022-05-20 01:58:40 +00:00
7c4269.wgsl.expected.msl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
7c4269.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
7c4269.wgsl.expected.wgsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
35fea9.wgsl tint: Rename and move builtin_table and builtin-gen 2022-05-06 15:13:01 +00:00
35fea9.wgsl.expected.glsl GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL. 2022-04-22 21:25:02 +00:00
35fea9.wgsl.expected.hlsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
35fea9.wgsl.expected.msl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
35fea9.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
35fea9.wgsl.expected.wgsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
222177.wgsl tint: Rename and move builtin_table and builtin-gen 2022-05-06 15:13:01 +00:00
222177.wgsl.expected.glsl GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL. 2022-04-22 21:25:02 +00:00
222177.wgsl.expected.hlsl tint: fix HLSL countOneBits and reverseBits for i32 args 2022-05-20 01:58:40 +00:00
222177.wgsl.expected.msl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
222177.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
222177.wgsl.expected.wgsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
a6ccd4.wgsl tint: Rename and move builtin_table and builtin-gen 2022-05-06 15:13:01 +00:00
a6ccd4.wgsl.expected.glsl GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL. 2022-04-22 21:25:02 +00:00
a6ccd4.wgsl.expected.hlsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
a6ccd4.wgsl.expected.msl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
a6ccd4.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
a6ccd4.wgsl.expected.wgsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
c21bc1.wgsl tint: Rename and move builtin_table and builtin-gen 2022-05-06 15:13:01 +00:00
c21bc1.wgsl.expected.glsl GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL. 2022-04-22 21:25:02 +00:00
c21bc1.wgsl.expected.hlsl tint: fix HLSL countOneBits and reverseBits for i32 args 2022-05-20 01:58:40 +00:00
c21bc1.wgsl.expected.msl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
c21bc1.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
c21bc1.wgsl.expected.wgsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
e1f4c1.wgsl tint: Rename and move builtin_table and builtin-gen 2022-05-06 15:13:01 +00:00
e1f4c1.wgsl.expected.glsl GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL. 2022-04-22 21:25:02 +00:00
e1f4c1.wgsl.expected.hlsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
e1f4c1.wgsl.expected.msl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
e1f4c1.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
e1f4c1.wgsl.expected.wgsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
e31adf.wgsl tint: Rename and move builtin_table and builtin-gen 2022-05-06 15:13:01 +00:00
e31adf.wgsl.expected.glsl GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL. 2022-04-22 21:25:02 +00:00
e31adf.wgsl.expected.hlsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
e31adf.wgsl.expected.msl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
e31adf.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
e31adf.wgsl.expected.wgsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00