swr driver compile error

Seong Mo Yeon <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <c23b8c61-1973-43da-ae40-8d6b1d0692a5@Spark>
While compiling mesa 13.0.1 with driver : swrast and swr, I got avx related error as follows:

make[5]: Entering directory `/opt/mesa-13.0.1/src/gallium/drivers/swr'
CXX rasterizer/core/libswrAVX_la-backend.lo
CXX rasterizer/core/libswrAVX_la-binner.lo
CXX rasterizer/core/libswrAVX_la-clip.lo
CXX rasterizer/core/libswrAVX_la-frontend.lo
CXX rasterizer/core/libswrAVX_la-pa_avx.lo
CXX rasterizer/core/libswrAVX_la-rasterizer.lo
CXX rasterizer/core/libswrAVX_la-tilemgr.lo
CXX rasterizer/jitter/libswrAVX_la-blend_jit.lo
/tmp/cc8QGQTn.s: Assembler messages:
/tmp/cc8QGQTn.s:908: Error: no such instruction: `vpbroadcastb 12(%rdi),%ymm0'
/tmp/cc8QGQTn.s:1225: Error: no such instruction: `vpbroadcastb 12(%rax),%ymm0'
make[5]: *** [rasterizer/core/libswrAVX_la-tilemgr.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
/tmp/ccFy9jhr.s: Assembler messages:
/tmp/ccFy9jhr.s:16888: Error: no such instruction: `vextracti128 $0x1,%ymm2,%xmm0'
/tmp/ccFy9jhr.s:16901: Error: no such instruction: `vpbroadcastd -20(%rbp),%ymm1'
/tmp/ccFy9jhr.s:16913: Error: no such instruction: `vextracti128 $0x1,%ymm1,%xmm3'
/tmp/ccFy9jhr.s:16948: Error: no such instruction: `vinserti128 $0x1,%xmm0,%ymm1,%ymm0'
make[5]: *** [rasterizer/core/libswrAVX_la-pa_avx.lo] Error 1
/tmp/ccfHQLco.s: Assembler messages:
/tmp/ccfHQLco.s:8066: Error: no such instruction: `vextracti128 $0x1,%ymm1,%xmm9'
/tmp/ccfHQLco.s:8088: Error: no such instruction: `vextracti128 $0x1,%ymm0,%xmm4'
/tmp/ccfHQLco.s:8109: Error: no such instruction: `vextracti128 $0x1,%ymm2,%xmm6'

My configuration for mesa is as follows :

./configure CXXFLAGS="-O2 -g -DDEFAULT_SOFTWARE_DEPTH_BITS=31 -mavx2" \
CFLAGS="-O2 -g -DDEFAULT_SOFTWARE_DEPTH_BITS=31 -mavx2" \
--disable-dri --disable-egl \
--with-gallium-drivers="swrast,swr" --enable-texture-float \
--with-egl-platforms="" --enable-gallium-osmesa \
--enable-gallium-llvm=yes --enable-llvm-shared-libs \
--with-llvm-prefix="/opt/llvm/3.8.1"

I have tried '-mavx -mavx2' but got the same error.

_______________________________________________
mesa-users mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.