Created attachment 443798 [details, diff] mesa-9999-icd.patch The patch may need some adjustment.
Pass --enable-opencl-icd to configure instead: https://bugs.gentoo.org/show_bug.cgi?id=546320