From 8af4707525a8987bc2fca85de3fa3f73ca3accbf Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Wed, 1 Dec 2021 08:34:22 -0800 Subject: [PATCH] Fix uninitialized variable --- piet-gpu/shader/gen/pathseg.spv | Bin 33908 -> 33920 bytes piet-gpu/shader/pathseg.comp | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/piet-gpu/shader/gen/pathseg.spv b/piet-gpu/shader/gen/pathseg.spv index 67fc57fb3685022e4f00cd7831fc097c86dc4a24..2ac684df95b29911ff6e00f1707287c9abf47852 100644 GIT binary patch delta 185 zcmey;!PL;nv>}6^ar)*={^^21icxVftEU|UGsAQy28KEY28N#uObj!C>>p728v_f& zEFgb25Q6|nehyR~MB4)8*?{76f$Zs%AF9c-&IGb%O?K3jo~)p5z&L$!pn5&fqKoSK jjFKQjKn8}6^an9yU{^^21icxVftL;w)CWh%u3=BV@^fv|;hM7SAEFcB}ko;_@ zJczah%CiB*=K|StCcjma=bZs$fpmaOm@#>whV*0;bq&TjlVjEEftK7=*JpGD83vLD s(J%vc0NHbZxPgHcY~W5H8zeRfXt*5%GguBJ26o_NL3QcP8JZH&02N>=%K!iX diff --git a/piet-gpu/shader/pathseg.comp b/piet-gpu/shader/pathseg.comp index 8653c16..7b8f3f0 100644 --- a/piet-gpu/shader/pathseg.comp +++ b/piet-gpu/shader/pathseg.comp @@ -100,7 +100,7 @@ void main() { // Scan the tag monoid TagMonoid local_tm = reduce_tag(tag_word); sh_tag[gl_LocalInvocationID.x] = local_tm; - for (uint i; i < LG_WG_SIZE; i++) { + for (uint i = 0; i < LG_WG_SIZE; i++) { barrier(); if (gl_LocalInvocationID.x >= (1u << i)) { TagMonoid other = sh_tag[gl_LocalInvocationID.x - (1u << i)];