diff --git a/meson.build b/meson.build index 56c19bc881a..0bf02182864 100644 --- a/meson.build +++ b/meson.build @@ -867,6 +867,13 @@ if _power8 != 'disabled' endif endif +if get_option('vmware-mks-stats') + if not with_gallium_svga + error('vmware-mks-stats requires gallium VMware/svga driver.') + endif + pre_args += '-DVMX86_STATS=1' +endif + _opencl = get_option('gallium-opencl') if _opencl != 'disabled' if not with_gallium diff --git a/meson_options.txt b/meson_options.txt index 29c402c4844..8f67013d1bb 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -524,3 +524,9 @@ option( value : '', description : 'Enable a custom shader replacement mechanism. Note that enabling this option requires adding/generating a shader_replacement.h file that can be included (see shaderapi.c).' ) +option( + 'vmware-mks-stats', + type : 'boolean', + value : false, + description : 'Build gallium VMware/svga driver with mksGuestStats instrumentation.' +)