From 0e43a8d9c85930c00fc855db86d1983f565d0a97 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 14 Jan 2025 09:42:54 -0800 Subject: [PATCH] Replace scalar in threshold check with vector component. --- src/shaders/compute.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shaders/compute.wgsl b/src/shaders/compute.wgsl index dddb354..48cfd75 100644 --- a/src/shaders/compute.wgsl +++ b/src/shaders/compute.wgsl @@ -8912,7 +8912,7 @@ fn main(@builtin(global_invocation_id) id: vec3) { /** * Set nonce if it passes the threshold and no other thread has set it */ - if ((BLAKE2B_IV32_1 ^ v1 ^ v17) > threshold && atomicLoad(&work.found) == 0u) { + if ((BLAKE2B_IV32_1 ^ v_01.y ^ v17) > threshold && atomicLoad(&work.found) == 0u) { atomicStore(&work.found, 1u); work.nonce.x = m0; work.nonce.y = m1; -- 2.34.1