Using a hardcoded list is error prone and doesn't work on NVidia (cherry picked from commit 629fb003)