mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +00:00
tint: Change all ProgramBuilder literals to 'i' or 'u' suffix
Unsuffixed integer literals are currently treated as i32, but will shortly become AbstractInteger. To keep tests behaving identically to how they are currently, change all test literals to using either 'i' or 'u' suffixes. Bug: tint:1504 Change-Id: Ic373d18ce1c718a16b6905568aec89da3641d36b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88845 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
8b9d1e0800
commit
0ce9ab042e
@@ -3,7 +3,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ fn f_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn f() {
|
||||
f_1();
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -514,7 +514,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 64, 1)
|
||||
@stage(compute) @workgroup_size(1i, 64i, 1i)
|
||||
fn main(@builtin(local_invocation_id) gl_LocalInvocationID_param : vec3<u32>, @builtin(global_invocation_id) gl_GlobalInvocationID_param : vec3<u32>) {
|
||||
gl_LocalInvocationID = gl_LocalInvocationID_param;
|
||||
gl_GlobalInvocationID = gl_GlobalInvocationID_param;
|
||||
|
||||
@@ -72,7 +72,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(128, 1, 1)
|
||||
@stage(compute) @workgroup_size(128i, 1i, 1i)
|
||||
fn main(@builtin(global_invocation_id) gl_GlobalInvocationID_param : vec3<u32>) {
|
||||
gl_GlobalInvocationID = gl_GlobalInvocationID_param;
|
||||
main_1();
|
||||
|
||||
@@ -69,7 +69,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main(@builtin(global_invocation_id) gl_GlobalInvocationID_param : vec3<u32>) {
|
||||
gl_GlobalInvocationID = gl_GlobalInvocationID_param;
|
||||
main_1();
|
||||
|
||||
@@ -7,7 +7,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ fn f_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn f() {
|
||||
f_1();
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ fn f_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn f() {
|
||||
f_1();
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ fn f_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn f() {
|
||||
f_1();
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ fn f_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn f() {
|
||||
f_1();
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ fn f_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn f() {
|
||||
f_1();
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ fn f_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn f() {
|
||||
f_1();
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ fn f_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn f() {
|
||||
f_1();
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ fn f_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn f() {
|
||||
f_1();
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ fn compute_main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn compute_main() {
|
||||
compute_main_1();
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ fn compute_main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn compute_main() {
|
||||
compute_main_1();
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ fn compute_main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn compute_main() {
|
||||
compute_main_1();
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ fn f_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn f() {
|
||||
f_1();
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1, 1, 1)
|
||||
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
||||
fn main() {
|
||||
main_1();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user