gallium: Move -DHAVE_PIPE_LOADER_DRI and -DHAVE_PIPE_LOADER_KMS to be pre_args
authorYonggang Luo <luoyonggang@gmail.com>
Thu, 28 Jul 2022 05:54:55 +0000 (13:54 +0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 29 Jul 2022 12:57:26 +0000 (12:57 +0000)
commit34572042c792fe1cb58e233f9c5a6e8ed93a9d7b
tree9f40406b04268b460b147f77f0d474f8298a0769
parent155c8bc9646bd70925982a10a8f526c33f71a869
gallium:  Move -DHAVE_PIPE_LOADER_DRI and -DHAVE_PIPE_LOADER_KMS to be pre_args

There is non pipe-loader source code depends on it.
After doing this, we found that shared library pipe_swrast depends on libswdri
The error message is:
src/gallium/targets/pipe-loader/pipe_swrast.so.p/pipe_swrast.c.o:pipe_swrast.c:swrast_driver_descriptor: error: undefined reference to 'dri_create_sw_winsys'
src/gallium/targets/pipe-loader/pipe_swrast.so.p/pipe_swrast.c.o:pipe_swrast.c:swrast_driver_descriptor: error: undefined reference to 'kms_dri_create_winsys'

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784>
meson.build
src/gallium/auxiliary/pipe-loader/meson.build
src/gallium/targets/pipe-loader/meson.build