diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-10-17 21:30:29 +0100 |
---|---|---|
committer | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-10-22 13:15:18 +0100 |
commit | d3c5911f8e486ac0d08c5160f6d9bd934c697b91 (patch) | |
tree | 66441e722f2bbc8b99e6ba597b07bd6bb38aec59 /xmrstak/backend/amd/minethd.cpp | |
parent | 27b839b8d2275c0e78a07cb03d27afb96ed6c7b9 (diff) | |
download | xmr-stak-d3c5911f8e486ac0d08c5160f6d9bd934c697b91.zip xmr-stak-d3c5911f8e486ac0d08c5160f6d9bd934c697b91.tar.gz |
move nicehash check into nonce calc
Diffstat (limited to 'xmrstak/backend/amd/minethd.cpp')
-rw-r--r-- | xmrstak/backend/amd/minethd.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xmrstak/backend/amd/minethd.cpp b/xmrstak/backend/amd/minethd.cpp index 8658e5c..ca0b110 100644 --- a/xmrstak/backend/amd/minethd.cpp +++ b/xmrstak/backend/amd/minethd.cpp @@ -200,10 +200,7 @@ void minethd::work_main() //Allocate a new nonce every 16 rounds if((round_ctr++ & 0xF) == 0) { - if(oWork.bNiceHash) - pGpuCtx->Nonce = globalStates::inst().calc_start_nonce(pGpuCtx->Nonce & 0xFF000000u, h_per_round * 16); - else - pGpuCtx->Nonce = globalStates::inst().calc_start_nonce(0, h_per_round * 16); + globalStates::inst().calc_start_nonce(pGpuCtx->Nonce, oWork.bNiceHash, h_per_round * 16); } cl_uint results[0x100]; |