diff options
author | Tim Rowley <[email protected]> | 2017-07-07 13:58:09 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-07-19 15:12:07 -0500 |
commit | 1cb5a6061ce4b7f0cf5a9e5938bc1a11fe24b9ca (patch) | |
tree | dacc5d03adf64e6054a8ebcfb18f7d310bb20822 /src/gallium/drivers/swr/swr_loader.cpp | |
parent | f42186b01dbc78357ace1bf47feb69696471b580 (diff) |
configure/swr: add KNL and SKX architecture targets
Not built by default. Currently only builds with icc.
v2:
* document knl,skx possibilities for swr_archs
* merge with changed loader lib selection code
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_loader.cpp')
-rw-r--r-- | src/gallium/drivers/swr/swr_loader.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_loader.cpp b/src/gallium/drivers/swr/swr_loader.cpp index 4aa850a6b8d..e205fe2d7ef 100644 --- a/src/gallium/drivers/swr/swr_loader.cpp +++ b/src/gallium/drivers/swr/swr_loader.cpp @@ -38,6 +38,26 @@ swr_create_screen(struct sw_winsys *winsys) util_cpu_detect(); + if (!strlen(filename) && + util_cpu_caps.has_avx512f && util_cpu_caps.has_avx512er) { +#if HAVE_SWR_KNL + fprintf(stderr, "KNL "); + sprintf(filename, "%s%s%s", UTIL_DL_PREFIX, "swrKNL", UTIL_DL_EXT); +#else + fprintf(stderr, "KNL (not built) "); +#endif + } + + if (!strlen(filename) && + util_cpu_caps.has_avx512f && util_cpu_caps.has_avx512bw) { +#if HAVE_SWR_SKX + fprintf(stderr, "SKX "); + sprintf(filename, "%s%s%s", UTIL_DL_PREFIX, "swrSKX", UTIL_DL_EXT); +#else + fprintf(stderr, "SKX (not built) "); +#endif + } + if (!strlen(filename) && util_cpu_caps.has_avx2) { #if HAVE_SWR_AVX2 fprintf(stderr, "AVX2 "); |