Skip to content

Commit

Permalink
Compat: Skip workgroupUniformLoad tests > max invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Feb 28, 2024
1 parent 0a3a99b commit 2268634
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ g.test('types')
const num_words_per_invocation = type.expected.length;
const total_host_words = num_invocations * num_words_per_invocation;

t.skipIf(
num_invocations > t.device.limits.maxComputeInvocationsPerWorkgroup,
`num_invocations (${num_invocations}) > maxComputeInvocationsPerWorkgroup (${t.device.limits.maxComputeInvocationsPerWorkgroup})`
);

let load = `workgroupUniformLoad(&wgvar)`;
if (type.to_host) {
load = type.to_host(load);
Expand Down

0 comments on commit 2268634

Please sign in to comment.