Simplify branch buffers.

This commit is contained in:
XMRig
2019-08-31 09:36:06 +07:00
parent df5fd65a45
commit 542f6e7240
2 changed files with 34 additions and 22 deletions

View File

@@ -48,13 +48,19 @@ protected:
void build() override;
private:
cl_mem m_blake256 = nullptr;
cl_mem m_groestl256 = nullptr;
cl_mem m_jh256 = nullptr;
cl_mem m_scratchpads = nullptr;
cl_mem m_skein512 = nullptr;
cl_mem m_states = nullptr;
Cn0Kernel *m_cn0 = nullptr;
enum Branches : size_t {
BRANCH_BLAKE_256,
BRANCH_GROESTL_256,
BRANCH_JH_256,
BRANCH_SKEIN_512,
BRANCH_MAX
};
cl_mem m_branches[BRANCH_MAX] = { nullptr, nullptr, nullptr, nullptr };
cl_mem m_scratchpads = nullptr;
cl_mem m_states = nullptr;
Cn0Kernel *m_cn0 = nullptr;
};