Skip to content

Commit 561a723

Browse files
committed
Workaround for a bug in AMD 18.6.1 driver
1 parent 62a0d23 commit 561a723

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

RandomX_OpenCL/CL/randomx_init.cl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,8 +1329,11 @@ __global uint* generate_jit_code(__global uint2* e, __global uint2* p0, __global
13291329
{
13301330
if (pass == 0)
13311331
{
1332+
// Workaround for a bug in AMD 18.6.1 driver
1333+
volatile uint dstAvailableAt2 = dstAvailableAt;
1334+
13321335
// Mark branch target
1333-
e[dstAvailableAt].x |= (0x20 << 8);
1336+
e[dstAvailableAt2].x |= (0x20 << 8);
13341337

13351338
// Mark branch
13361339
e[i].x |= (0x40 << 8);

0 commit comments

Comments
 (0)