mesa: enable the swr
variant if +llvm, instead of using conflicts (#29008)
* mesa: enable the `swr` variant if +llvm, instead of using conflicts fixes #28994
This commit is contained in:
parent
3c1b2c0fc9
commit
5272e72344
@ -42,7 +42,7 @@ def url_for_version(self, version):
|
||||
variant('build_type', default='Release', values=("Release", "Debug", "RelWithDebInfo"), description='CMake build type')
|
||||
|
||||
depends_on('cmake@3:', type='build')
|
||||
depends_on('mesa~llvm@21: swr=none', type='link')
|
||||
depends_on('mesa~llvm@21:', type='link')
|
||||
depends_on('libelf', type='link', when="@3.7.0:3.8.0")
|
||||
depends_on('numactl', type='link', when="@3.7.0:")
|
||||
|
||||
|
@ -50,10 +50,8 @@ class Mesa(MesonPackage):
|
||||
_SWR_DISABLED_VALUES = ('none',)
|
||||
variant('swr', default=_SWR_AUTO_VALUE,
|
||||
values=_SWR_DISABLED_VALUES + _SWR_ENABLED_VALUES,
|
||||
multi=True,
|
||||
multi=True, when='+llvm',
|
||||
description="Enable the SWR driver.")
|
||||
for swr_enabled_value in _SWR_ENABLED_VALUES:
|
||||
conflicts('~llvm', when='swr={0}'.format(swr_enabled_value))
|
||||
|
||||
# Front ends
|
||||
variant('osmesa', default=True, description="Enable the OSMesa frontend.")
|
||||
|
Loading…
Reference in New Issue
Block a user