More likely a bug in the mesa OpenCL code. If you want functional OpenCL, you should use the ROCm OpenCL packages.