From e274dbcc8ef19665cb913777837fa0ac7e44ff26 Mon Sep 17 00:00:00 2001
From: psychocrypt <psychocryptHPC@gmail.com>
Date: Sat, 2 Feb 2019 22:37:19 +0100
Subject: [PATCH] OpenCL: fix Blake hashing

Windows driver creates wrong code if unroll is used.
---
 xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl b/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl
index faea409..2c775e7 100644
--- a/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl
+++ b/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl
@@ -1173,7 +1173,6 @@ __kernel void Blake(__global ulong *states, __global uint *BranchBuf, __global u
 
         ((uint8 *)h)[0] = vload8(0U, c_IV256);
 
-        #pragma unroll 4
         for(uint i = 0, bitlen = 0; i < 4; ++i)
         {
             if(i < 3)
@@ -1295,4 +1294,4 @@ __kernel void Groestl(__global ulong *states, __global uint *BranchBuf, __global
         }
     }
 
-)==="
+)==="
\ No newline at end of file
-- 
GitLab