Commit 1f09d08a authored by Sergii Romantsov's avatar Sergii Romantsov Committed by Emil Velikov

d3d: meson: do not prefix user provided d3d-drivers-path

The user can select the location where there d3d drivers
are installed by the d3d-drivers-path meson option.

By default path will be $prefix/$libdir/d3d.

Currently we add $prefix to the user provided path.
Resulting in an incorrect or even missing path.

Based on logic of
CC: Kenneth Graunke <>
CC: Emil Velikov <>
Signed-off-by: default avatarSergii Romantsov <>
Reviewed-by: default avatarEmil Velikov <>
(cherry picked from commit dcc48664)
Fixes: b7c6870f ("meson: Add moduledir to d3d.pc")
parent 5ed1b332
......@@ -615,7 +615,7 @@ with_gallium_xa = _xa != 'false'
d3d_drivers_path = get_option('d3d-drivers-path')
if d3d_drivers_path == ''
d3d_drivers_path = join_paths(get_option('libdir'), 'd3d')
d3d_drivers_path = join_paths(get_option('prefix'), get_option('libdir'), 'd3d')
with_gallium_st_nine = get_option('gallium-nine')
......@@ -68,5 +68,5 @@ pkg.generate(
description : 'Native D3D driver modules',
version : '.'.join(nine_version),
requires_private : 'libdrm >= ' + dep_libdrm.version(),
variables : ['moduledir=${prefix}/@0@'.format(d3d_drivers_path)],
variables : ['moduledir=@0@'.format(d3d_drivers_path)],
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment