mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 02:48:03 +03:00
d3d
This commit is contained in:
9 files changed
+4215
-5
No files matched your search
+2619
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,895 @@
|
||||
# Copyright © 2017-2019 Intel Corporation
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
option(
|
||||
'split-debug',
|
||||
type : 'feature',
|
||||
value : 'disabled',
|
||||
description : 'split debug information (-gsplit-dwarf compile flag) and debug information in the gdb index format (--gdb-index)',
|
||||
)
|
||||
option(
|
||||
'platforms',
|
||||
type : 'array',
|
||||
value : ['auto'],
|
||||
choices : [
|
||||
'auto', 'x11', 'wayland', 'haiku', 'android', 'windows', 'macos',
|
||||
],
|
||||
description : 'window systems to support. If this is set to `auto`, all ' +
|
||||
'platforms applicable will be enabled.'
|
||||
)
|
||||
|
||||
option(
|
||||
'egl-native-platform',
|
||||
type : 'combo',
|
||||
value : 'auto',
|
||||
choices : [
|
||||
'auto', 'x11', 'wayland', 'haiku', 'android', 'windows',
|
||||
'surfaceless', 'drm',
|
||||
],
|
||||
description : 'the window system EGL assumes for EGL_DEFAULT_DISPLAY',
|
||||
)
|
||||
|
||||
option(
|
||||
'android-stub',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Build against android-stub',
|
||||
)
|
||||
|
||||
option(
|
||||
'android-strict',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
description : 'Enable strict Android compliance. Disabling may cause CTS ' +
|
||||
'failures or other problems, but allows drivers to expose ' +
|
||||
'capabilities that are normally hidden. Default: true'
|
||||
)
|
||||
|
||||
option(
|
||||
'android-libbacktrace',
|
||||
type : 'feature',
|
||||
description : 'Use Android\'s libbacktrace',
|
||||
)
|
||||
|
||||
option(
|
||||
'android-libperfetto',
|
||||
type : 'feature',
|
||||
description : 'Use Android\'s libperfetto',
|
||||
)
|
||||
|
||||
option(
|
||||
'dri-drivers-path',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Location to install dri drivers. Default: $libdir/dri.'
|
||||
)
|
||||
|
||||
option(
|
||||
'unversion-libgallium',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Do not include mesa version in libgallium DSO filename. ' +
|
||||
'Do not enable unless you know what you are doing. Default: false'
|
||||
)
|
||||
|
||||
option(
|
||||
'expat',
|
||||
type : 'feature',
|
||||
value : 'auto',
|
||||
description : 'Controls the use of expat. ' +
|
||||
'Cannot be disabled if xmlconfig is enabled.'
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-drivers',
|
||||
type : 'array',
|
||||
value : ['auto'],
|
||||
choices : [
|
||||
'all', 'auto',
|
||||
'asahi', 'crocus', 'd3d12', 'ethosu', 'etnaviv', 'freedreno', 'i915', 'iris',
|
||||
'lima', 'llvmpipe', 'nouveau', 'panfrost', 'r300', 'r600', 'radeonsi',
|
||||
'rocket', 'softpipe', 'svga', 'tegra', 'v3d', 'vc4', 'virgl', 'zink',
|
||||
],
|
||||
description : 'List of gallium drivers to build. If this is set to auto ' +
|
||||
'all drivers applicable to the target OS/architecture ' +
|
||||
'will be built.'
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-extra-hud',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Enable HUD block/NIC I/O HUD status support',
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-va',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'enable gallium va frontend.',
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-mediafoundation',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'enable gallium mediafoundation frontend.',
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-mediafoundation-test',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'enable gallium mediafoundation frontend tests.',
|
||||
)
|
||||
|
||||
option(
|
||||
'va-libs-path',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'path to put va libraries. defaults to $libdir/dri.'
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-d3d10umd',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'build gallium D3D10 WDDM UMD frontend.',
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-rusticl',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'build gallium "rusticl" OpenCL frontend.',
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-rusticl-enable-drivers',
|
||||
type : 'array',
|
||||
value : ['auto'],
|
||||
choices : ['auto', 'asahi', 'freedreno', 'radeonsi', 'crocus'],
|
||||
description : 'List of gallium drivers for which rusticl will be enabled ' +
|
||||
'by default',
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-wgl-dll-name',
|
||||
type : 'string',
|
||||
value : 'libgallium_wgl',
|
||||
description : 'name of gallium wgl target DLL built for Windows. ' +
|
||||
'defaults to libgallium_wgl.dll to match DRI',
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-d3d10-dll-name',
|
||||
type : 'string',
|
||||
value : 'libgallium_d3d10',
|
||||
description : 'name of gallium d3d10 target DLL built for Windows. ' +
|
||||
'defaults to libgallium_d3d10.dll to match DRI',
|
||||
)
|
||||
|
||||
option(
|
||||
'mediafoundation-store-dll',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Selects whether the gallium mediafoundation DLL is built for the store. ',
|
||||
)
|
||||
|
||||
option(
|
||||
'mediafoundation-codecs',
|
||||
type : 'array',
|
||||
value : ['all'],
|
||||
choices: [
|
||||
'all', 'h264enc', 'h265enc', 'av1enc'
|
||||
],
|
||||
description : 'List of codecs to build mediafoundation frontend DLLs for. ' +
|
||||
'These will generate different MFT DLLs per codec and link' +
|
||||
'against the gallium drivers which uses the video-codecs option'
|
||||
)
|
||||
|
||||
option(
|
||||
'static-libclc',
|
||||
type : 'array',
|
||||
value : [],
|
||||
choices : ['spirv', 'spirv64', 'all'],
|
||||
description : 'Link libclc SPIR-V statically.',
|
||||
)
|
||||
|
||||
option(
|
||||
'd3d-drivers-path',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Location of D3D drivers. Default: $libdir/d3d',
|
||||
)
|
||||
|
||||
option(
|
||||
'vulkan-drivers',
|
||||
type : 'array',
|
||||
value : ['auto'],
|
||||
choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'intel_hasvk',
|
||||
'panfrost', 'swrast', 'virtio', 'imagination',
|
||||
'microsoft-experimental', 'nouveau', 'asahi', 'gfxstream',
|
||||
'kosmickrisp', 'all'],
|
||||
description : 'List of vulkan drivers to build. If this is set to auto ' +
|
||||
'all drivers applicable to the target OS/architecture ' +
|
||||
'will be built'
|
||||
)
|
||||
|
||||
# Note that the freedreno gallium driver doesn't support KGSL.
|
||||
# On those systems, zink with Turnip should be used instead.
|
||||
# WSL is only supported for the replay tool.
|
||||
option(
|
||||
'freedreno-kmds',
|
||||
type : 'array',
|
||||
value : ['msm'],
|
||||
choices : ['msm', 'kgsl', 'virtio', 'wsl'],
|
||||
description : 'List of kernel-mode drivers to enable for freedreno ' +
|
||||
'gallium and vulkan driver',
|
||||
)
|
||||
|
||||
option(
|
||||
'amdgpu-virtio',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'use experimental virtio backend for radeonsi/radv',
|
||||
)
|
||||
option(
|
||||
'imagination-srv',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Enable Services backend for Imagination Technologies ' +
|
||||
'vulkan driver',
|
||||
)
|
||||
|
||||
option('imagination-uscgen-devices',
|
||||
type : 'array',
|
||||
value : [],
|
||||
choices : ['axe-1-16m', 'bxs-4-64', 'gx6250'],
|
||||
description : 'List of devices for which to pre-build USC program binaries.',
|
||||
)
|
||||
|
||||
option(
|
||||
'shader-cache',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Build with on-disk shader cache support.',
|
||||
)
|
||||
|
||||
option(
|
||||
'shader-cache-default',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
description : 'If set to false, the feature is only activated when ' +
|
||||
'environment variable MESA_SHADER_CACHE_DISABLE is set ' +
|
||||
'to false',
|
||||
)
|
||||
|
||||
option(
|
||||
'shader-cache-max-size',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Default value for MESA_SHADER_CACHE_MAX_SIZE enviroment ' +
|
||||
'variable. If set, determines the maximum size of the ' +
|
||||
'on-disk cache of compiled shader programs, can be overriden ' +
|
||||
'by enviroment variable if needed. Should be set to a number ' +
|
||||
'optionally followed by ``K``, ``M``, or ``G`` to specify ' +
|
||||
'a size in kilobytes, megabytes, or gigabytes. By default, ' +
|
||||
'gigabytes will be assumed. And if unset, a maximum size of ' +
|
||||
'1GB will be used.'
|
||||
)
|
||||
|
||||
option(
|
||||
'vulkan-icd-dir',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Location relative to prefix to put vulkan icds on install. ' +
|
||||
'Default: $datadir/vulkan/icd.d'
|
||||
)
|
||||
|
||||
option(
|
||||
'vulkan-manifest-per-architecture',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
description : 'If true, Vulkan ICDs have a separate JSON manifest per ' +
|
||||
'architecture, for example lvp_icd.x86_64.json. ' +
|
||||
'(Recommended for non-default ${prefix}.) ' +
|
||||
'If false, all architectures share a single JSON manifest, ' +
|
||||
'for example lvp_icd.json, referencing the library by its ' +
|
||||
'basename. ' +
|
||||
'(Recommended for Unix OS distros installing into /usr.)'
|
||||
)
|
||||
|
||||
option(
|
||||
'moltenvk-dir',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Location of the MoltenVk SDK. Default: '
|
||||
)
|
||||
|
||||
option(
|
||||
'vulkan-layers',
|
||||
type : 'array',
|
||||
value : [],
|
||||
choices : [
|
||||
'device-select', 'intel-nullhw', 'overlay', 'screenshot', 'anti-lag',
|
||||
'vram-report-limit',
|
||||
],
|
||||
description : 'List of vulkan layers to build'
|
||||
)
|
||||
|
||||
option(
|
||||
'shared-glapi',
|
||||
type : 'feature',
|
||||
deprecated: true,
|
||||
description : 'Does nothing, left here for a while to avoid build breakages.',
|
||||
)
|
||||
|
||||
option(
|
||||
'gles1',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Build support for OpenGL ES 1.x'
|
||||
)
|
||||
|
||||
option(
|
||||
'gles2',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Build support for OpenGL ES 2.x and 3.x'
|
||||
)
|
||||
|
||||
option(
|
||||
'opengl',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
description : 'Build support for desktop OpenGL'
|
||||
)
|
||||
|
||||
option(
|
||||
'gbm',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Build support for gbm platform'
|
||||
)
|
||||
|
||||
option(
|
||||
'libgbm-external',
|
||||
type: 'boolean',
|
||||
value: false,
|
||||
description: 'Whether to use external libgbm (default: use in-tree copy)'
|
||||
)
|
||||
|
||||
option(
|
||||
'gbm-backends-path',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Locations to search for gbm backends, passed as colon ' +
|
||||
'separated list. Default: $libdir/gbm.'
|
||||
)
|
||||
|
||||
option(
|
||||
'glx',
|
||||
type : 'combo',
|
||||
value : 'auto',
|
||||
choices : ['auto', 'disabled', 'dri', 'xlib'],
|
||||
description : 'Build support for GLX platform'
|
||||
)
|
||||
|
||||
option(
|
||||
'egl',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Build support for EGL platform'
|
||||
)
|
||||
|
||||
option(
|
||||
'glvnd',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Enable GLVND support.'
|
||||
)
|
||||
|
||||
option(
|
||||
'microsoft-clc',
|
||||
type : 'feature',
|
||||
value : 'auto',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Build support for the Microsoft CLC to DXIL compiler'
|
||||
)
|
||||
|
||||
option(
|
||||
'spirv-to-dxil',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Build support for the SPIR-V to DXIL library'
|
||||
)
|
||||
|
||||
option(
|
||||
'glvnd-vendor-name',
|
||||
type : 'string',
|
||||
value : 'mesa',
|
||||
description : 'Vendor name string to use for glvnd libraries'
|
||||
)
|
||||
|
||||
option(
|
||||
'glx-read-only-text',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Disable writable .text section on x86 (decreases performance)'
|
||||
)
|
||||
|
||||
option(
|
||||
'llvm',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Build with LLVM support.'
|
||||
)
|
||||
|
||||
option(
|
||||
'shared-llvm',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Whether to link LLVM shared or statically.'
|
||||
)
|
||||
|
||||
option(
|
||||
'draw-use-llvm',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
description : 'Whether to use LLVM for the Gallium draw module, if LLVM ' +
|
||||
'is included.'
|
||||
)
|
||||
|
||||
option(
|
||||
'amd-use-llvm',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
description : 'Whether to use LLVM for the AMD drivers, if LLVM ' +
|
||||
'is included.'
|
||||
)
|
||||
|
||||
option (
|
||||
'llvm-orcjit',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description: 'Build llvmpipe with LLVM ORCJIT support. Has no effect when ' +
|
||||
'building for architectures without LLVM MCJIT support -- ' +
|
||||
'ORCJIT is the only choice on such architectures and will ' +
|
||||
'always be enabled.'
|
||||
)
|
||||
|
||||
option(
|
||||
'valgrind',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Build with valgrind support'
|
||||
)
|
||||
|
||||
option(
|
||||
'libunwind',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Use libunwind for stack-traces'
|
||||
)
|
||||
|
||||
option(
|
||||
'lmsensors',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Enable HUD lmsensors support.'
|
||||
)
|
||||
|
||||
option(
|
||||
'build-tests',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Build unit tests. Currently this will build *all* unit ' +
|
||||
'tests except the ACO tests, which may build more than expected.'
|
||||
)
|
||||
|
||||
option(
|
||||
'enable-glcpp-tests',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
description : 'Build glcpp unit tests. These are flaky on CI.'
|
||||
)
|
||||
|
||||
option(
|
||||
'build-radv-tests',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Build RADV tests. These do not require an AMD GPU.'
|
||||
)
|
||||
|
||||
option(
|
||||
'build-aco-tests',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Build ACO tests. These require RADV and glslang but not ' +
|
||||
'an AMD GPU.'
|
||||
)
|
||||
|
||||
option(
|
||||
'install-intel-gpu-tests',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Build and install Intel unit tests which require the GPU. ' +
|
||||
'This option is for developers and the Intel CI system only.'
|
||||
)
|
||||
|
||||
option(
|
||||
'html-docs',
|
||||
type : 'feature',
|
||||
value : 'disabled',
|
||||
description : 'Build HTML documentation.'
|
||||
)
|
||||
|
||||
option(
|
||||
'html-docs-path',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Location to install HTML documentation. Default: $datadir/doc/mesa.'
|
||||
)
|
||||
|
||||
option(
|
||||
'selinux',
|
||||
type : 'boolean',
|
||||
deprecated : true,
|
||||
description : 'Does nothing, left here for a while to avoid build breakages.',
|
||||
)
|
||||
|
||||
option(
|
||||
'execmem',
|
||||
type : 'boolean',
|
||||
deprecated : true,
|
||||
description : 'Does nothing, left here for a while to avoid build breakages.',
|
||||
)
|
||||
|
||||
option(
|
||||
'tools',
|
||||
type : 'array',
|
||||
value : [],
|
||||
choices : ['amd', 'asahi', 'dlclose-skip', 'drm-shim', 'etnaviv', 'freedreno',
|
||||
'glsl', 'imagination', 'intel', 'intel-ui', 'lima', 'nir', 'nouveau',
|
||||
'panfrost', 'zink', 'all'],
|
||||
description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
|
||||
)
|
||||
|
||||
option(
|
||||
'power8',
|
||||
type : 'feature',
|
||||
description : 'Does nothing, left here for a while to avoid build breakages.',
|
||||
deprecated: true,
|
||||
)
|
||||
|
||||
option(
|
||||
'xlib-lease',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Enable VK_EXT_acquire_xlib_display.'
|
||||
)
|
||||
|
||||
option(
|
||||
'glx-direct',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
description : 'Enable direct rendering in GLX and EGL for DRI',
|
||||
)
|
||||
|
||||
option('egl-lib-suffix',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Suffix to append to EGL library name. Default: none.'
|
||||
)
|
||||
|
||||
option(
|
||||
'gles-lib-suffix',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Suffix to append to GLES library names. Default: none.'
|
||||
)
|
||||
|
||||
option(
|
||||
'platform-sdk-version',
|
||||
type : 'integer',
|
||||
min : 25,
|
||||
max : 10000,
|
||||
value : 35,
|
||||
description : 'Android Platform SDK version. Default: Android15 version.'
|
||||
)
|
||||
|
||||
option(
|
||||
'allow-kcmp',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Allow using KCMP_FILE to compare file descriptions. ' +
|
||||
'auto = allowed everywhere except on Android'
|
||||
)
|
||||
|
||||
option(
|
||||
'zstd',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Use ZSTD instead of ZLIB in some cases.'
|
||||
)
|
||||
|
||||
option(
|
||||
'zlib',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
value : 'enabled',
|
||||
description : 'Use ZLIB to build driver. Default: enabled'
|
||||
)
|
||||
|
||||
option(
|
||||
'display-info',
|
||||
type : 'feature',
|
||||
description : 'Use libdisplay-info to build driver.'
|
||||
)
|
||||
|
||||
option(
|
||||
'sse2',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
description : 'use msse2 flag for x86. Uses sse/sse2 instead of x87. Default: true',
|
||||
)
|
||||
|
||||
option(
|
||||
'perfetto',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Enable performance analysis with Perfetto. Default: false'
|
||||
)
|
||||
|
||||
option(
|
||||
'datasources',
|
||||
type : 'array',
|
||||
value : ['auto'],
|
||||
choices : ['auto', 'panfrost', 'intel', 'freedreno'],
|
||||
description : 'List of Perfetto datasources to build. If this is set to ' +
|
||||
'`auto`, datasources that can not be build are skipped. ' +
|
||||
'Default: [`auto`]'
|
||||
)
|
||||
|
||||
option(
|
||||
'teflon',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Enable TensorFlow Lite delegate. Default: false'
|
||||
)
|
||||
|
||||
option(
|
||||
'gpuvis',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Enable tracing markers for gpuvis. Default: false'
|
||||
)
|
||||
|
||||
option(
|
||||
'sysprof',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Enable tracing markers for sysprof. Default: false'
|
||||
)
|
||||
|
||||
option(
|
||||
'custom-shader-replacement',
|
||||
type : 'string',
|
||||
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.'
|
||||
)
|
||||
|
||||
option(
|
||||
'vulkan-beta',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Build vulkan drivers with BETA extensions enabled.'
|
||||
)
|
||||
|
||||
option(
|
||||
'intel-rt',
|
||||
type : 'feature',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Build Ray Tracing on supported hardware.'
|
||||
)
|
||||
|
||||
option(
|
||||
'intel-elk',
|
||||
type : 'boolean',
|
||||
value : true,
|
||||
description : 'Build ELK compiler (used for Gfx8 and earlier). ' +
|
||||
'This is required for Crocus and Hasvk, and it is ' +
|
||||
'optional for Iris and various developer tools.'
|
||||
)
|
||||
|
||||
option(
|
||||
'video-codecs',
|
||||
type : 'array',
|
||||
value : ['all_free'],
|
||||
choices: [
|
||||
'all', 'all_free', 'vc1dec', 'h264dec', 'h264enc', 'h265dec', 'h265enc',
|
||||
'av1dec', 'av1enc', 'vp9dec', 'mpeg12dec', 'jpegdec'
|
||||
],
|
||||
description : 'List of codecs to build support for. ' +
|
||||
'Distros might want to consult their legal department before ' +
|
||||
'enabling these. This is used for all video APIs (vaapi, ' +
|
||||
'vulkan). Non-patent encumbered codecs will be ' +
|
||||
'enabled by default with the all_free default value.'
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-d3d12-video',
|
||||
type : 'feature',
|
||||
value : 'auto',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'build gallium d3d12 with video support.',
|
||||
)
|
||||
|
||||
option(
|
||||
'gallium-d3d12-graphics',
|
||||
type : 'feature',
|
||||
value : 'auto',
|
||||
description : 'build gallium d3d12 with graphics pipeline support.',
|
||||
)
|
||||
|
||||
option(
|
||||
'radv-build-id',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Override build id for shader cache keys (hex string). ' +
|
||||
'Can be extracted with readelf -x .note.gnu.build-id'
|
||||
)
|
||||
|
||||
option(
|
||||
'radeonsi-build-id',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Override build id for shader cache keys (hex string). ' +
|
||||
'Can be extracted with readelf -x .note.gnu.build-id'
|
||||
)
|
||||
|
||||
option(
|
||||
'tu-build-id',
|
||||
type : 'string',
|
||||
value : '',
|
||||
description : 'Override build id for shader cache keys (hex string). '
|
||||
)
|
||||
|
||||
option(
|
||||
'min-windows-version',
|
||||
type : 'integer',
|
||||
min : 7,
|
||||
max : 11,
|
||||
value : 8,
|
||||
description : 'Minimum Windows version to support. Defaults to Windows 8.'
|
||||
)
|
||||
|
||||
option(
|
||||
'xmlconfig',
|
||||
type : 'feature',
|
||||
value : 'auto',
|
||||
deprecated: {'true': 'enabled', 'false': 'disabled'},
|
||||
description : 'Build custom xmlconfig (driconf) support. If disabled, ' +
|
||||
'the default driconf file is hardcoded into Mesa. ' +
|
||||
'Requires expat.'
|
||||
)
|
||||
|
||||
option(
|
||||
'legacy-wayland',
|
||||
type : 'array',
|
||||
value : [],
|
||||
description : 'Build legacy Wayland support features.',
|
||||
choices : [
|
||||
'bind-wayland-display',
|
||||
],
|
||||
)
|
||||
|
||||
option(
|
||||
'legacy-x11',
|
||||
type : 'array',
|
||||
value : [],
|
||||
description : 'Build legacy X11 support features.',
|
||||
deprecated : true,
|
||||
choices : [
|
||||
],
|
||||
)
|
||||
|
||||
option(
|
||||
'mesa-clc',
|
||||
type : 'combo',
|
||||
value : 'auto',
|
||||
choices : [
|
||||
'enabled', 'system', 'auto'
|
||||
],
|
||||
description : 'Build the mesa-clc compiler or use a system version.'
|
||||
)
|
||||
|
||||
option(
|
||||
'install-mesa-clc',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Install the mesa-clc compiler (if needed for cross builds).'
|
||||
)
|
||||
|
||||
option(
|
||||
'mesa-clc-bundle-headers',
|
||||
type : 'combo',
|
||||
value : 'auto',
|
||||
choices : [
|
||||
'enabled', 'auto'
|
||||
],
|
||||
description : 'Bundle the OpenCL headers into the mesa-clc binary (default to bundle if static LLVM is used). Note, it might require rebuilding mesa-clc if opencl-c.h or opencl-c-base.h are changed (e.g. on Clang upgrades).'
|
||||
)
|
||||
|
||||
option(
|
||||
'precomp-compiler',
|
||||
type : 'combo',
|
||||
value : 'auto',
|
||||
choices : [
|
||||
'enabled', 'system', 'auto'
|
||||
],
|
||||
description : 'Build drivers internal shader compilers or use a system version'
|
||||
)
|
||||
|
||||
option(
|
||||
'install-precomp-compiler',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Install the drivers internal shader compilers (if needed for cross builds).'
|
||||
)
|
||||
|
||||
option(
|
||||
'allow-fallback-for',
|
||||
type : 'array',
|
||||
value : ['perfetto'],
|
||||
choices : [
|
||||
'libdrm', 'libva', 'perfetto',
|
||||
],
|
||||
description : 'Allows the fallback mechanism if the dependency is not available on the system, or too old.'
|
||||
)
|
||||
|
||||
option(
|
||||
'virtgpu_kumquat',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Build virtgpu_kumquat (only useful with gfxstream currently)'
|
||||
)
|
||||
|
||||
option(
|
||||
'spirv-tools',
|
||||
type : 'feature',
|
||||
description : 'Use SPIRV-Tools for dumping SPIR-V for debugging purposes (required by CLC)'
|
||||
)
|
||||
|
||||
option(
|
||||
'allow-broken-lto',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Manual override switch to enable LTO, which is unsupported due to being broken. WARNING: This option may break your driver randomly!'
|
||||
)
|
||||
|
||||
option(
|
||||
'intel-virtio-experimental',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'use experimental virtio backend for intel driver',
|
||||
)
|
||||
|
||||
option(
|
||||
'panfrost-rust',
|
||||
type : 'boolean',
|
||||
value : false,
|
||||
description : 'Build panfrost Rust components.'
|
||||
)
|
||||
@@ -1563,13 +1563,19 @@ crocus_transfer_map(struct pipe_context *ctx,
|
||||
|
||||
|
||||
if (map_would_stall && (usage & PIPE_MAP_DONTBLOCK) &&
|
||||
(usage & PIPE_MAP_DIRECTLY))
|
||||
(usage & PIPE_MAP_DIRECTLY)) {
|
||||
fprintf(stderr, "CROCUS-MAP-FAIL: stall+dontblock+directly usage=0x%x "
|
||||
"size=%u\n", usage, box->width);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (surf->tiling != ISL_TILING_LINEAR &&
|
||||
(usage & PIPE_MAP_DIRECTLY))
|
||||
(usage & PIPE_MAP_DIRECTLY)) {
|
||||
fprintf(stderr, "CROCUS-MAP-FAIL: tiled+directly tiling=%d usage=0x%x\n",
|
||||
surf->tiling, usage);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct crocus_transfer *map;
|
||||
if (usage & TC_TRANSFER_MAP_THREADED_UNSYNC)
|
||||
@@ -1577,8 +1583,10 @@ crocus_transfer_map(struct pipe_context *ctx,
|
||||
else
|
||||
map = slab_zalloc(&ice->transfer_pool);
|
||||
|
||||
if (!map)
|
||||
if (!map) {
|
||||
fprintf(stderr, "CROCUS-MAP-FAIL: transfer slab tukendi usage=0x%x\n", usage);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct pipe_transfer *xfer = &map->base.b;
|
||||
|
||||
|
||||
@@ -403,8 +403,17 @@ NineBuffer9_Lock( struct NineBuffer9 *This,
|
||||
unsigned offset;
|
||||
struct pipe_resource *res;
|
||||
This->buf = nine_upload_create_buffer(device->buffer_upload, This->base.info.width0);
|
||||
res = nine_upload_buffer_resource_and_offset(This->buf, &offset);
|
||||
NineBuffer9_RebindIfRequired(This, device, res, offset);
|
||||
/* nine_upload_create_buffer() NULL donebilir (slab tukenmesi ya da
|
||||
* resource_create basarisizligi). Asagidaki "if (This->buf) ... else"
|
||||
* bunu zaten bekliyor ve normal yola geri dusuyor; burada kontrolsuz
|
||||
* dereference edince o yola hic ulasilamadan cokuyorduk.
|
||||
* Gercek cokme: Warband WSE2 + Diplomacy, 8086:0166
|
||||
* nine_upload_buffer_resource_and_offset (buf=NULL, *offset -> 0x8)
|
||||
* NineVertexBuffer9_Lock <- rglVertexBuffer::write */
|
||||
if (This->buf) {
|
||||
res = nine_upload_buffer_resource_and_offset(This->buf, &offset);
|
||||
NineBuffer9_RebindIfRequired(This, device, res, offset);
|
||||
}
|
||||
}
|
||||
|
||||
if (This->buf) {
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "util/u_math.h"
|
||||
#include "util/slab.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "nine_buffer_upload.h"
|
||||
|
||||
#include "nine_debug.h"
|
||||
@@ -205,6 +206,8 @@ nine_upload_create_buffer(struct nine_buffer_upload *upload,
|
||||
|
||||
buf->resource = screen->resource_create(screen, &resource);
|
||||
if (buf->resource == NULL) {
|
||||
fprintf(stderr, "NINE-UPLOAD-FAIL: resource_create(%u bayt, "
|
||||
"persistent|coherent) basarisiz\n", buffer_size);
|
||||
slab_free_st(&upload->buffer_pool, buf);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,676 @@
|
||||
/*
|
||||
* XML DRI client-side driver configuration
|
||||
* Copyright (C) 2003 Felix Kuehling
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included
|
||||
* in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* FELIX KUEHLING, OR ANY OTHER CONTRIBUTORS BE LIABLE FOR ANY CLAIM,
|
||||
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
||||
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* \file driconf.h
|
||||
* \brief Pool of common options
|
||||
* \author Felix Kuehling
|
||||
*
|
||||
* This file defines macros that can be used to construct
|
||||
* driConfigOptions in the drivers.
|
||||
*/
|
||||
|
||||
#ifndef __DRICONF_H
|
||||
#define __DRICONF_H
|
||||
|
||||
#include "xmlconfig.h"
|
||||
|
||||
/*
|
||||
* generic macros
|
||||
*/
|
||||
|
||||
/** \brief Names a section of related options to follow */
|
||||
#define DRI_CONF_SECTION(text) { .desc = text, .info = { .type = DRI_SECTION } },
|
||||
#define DRI_CONF_SECTION_END
|
||||
|
||||
/** \brief End an option description */
|
||||
#define DRI_CONF_OPT_END },
|
||||
|
||||
/** \brief A verbal description (empty version) */
|
||||
#define DRI_CONF_DESC(text) .desc = text,
|
||||
|
||||
/** \brief A verbal description of an enum value */
|
||||
#define DRI_CONF_ENUM(_value,text) { .value = _value, .desc = text },
|
||||
|
||||
#define DRI_CONF_RANGE_I(min, max) \
|
||||
.range = { \
|
||||
.start = { ._int = min }, \
|
||||
.end = { ._int = max }, \
|
||||
} \
|
||||
|
||||
#define DRI_CONF_RANGE_U64(min, max) \
|
||||
.range = { \
|
||||
.start = { ._uint64 = min }, \
|
||||
.end = { ._uint64 = max }, \
|
||||
}
|
||||
|
||||
#define DRI_CONF_RANGE_F(min, max) \
|
||||
.range = { \
|
||||
.start = { ._float = min }, \
|
||||
.end = { ._float = max }, \
|
||||
} \
|
||||
|
||||
/**
|
||||
* \brief A boolean option definition, with the default value passed in as a
|
||||
* string
|
||||
*/
|
||||
|
||||
#define DRI_CONF_OPT_B(_name, def, _desc) { \
|
||||
.desc = _desc, \
|
||||
.info = { \
|
||||
.name = #_name, \
|
||||
.type = DRI_BOOL, \
|
||||
}, \
|
||||
.value = { ._bool = def }, \
|
||||
},
|
||||
|
||||
#define DRI_CONF_OPT_I(_name, def, min, max, _desc) { \
|
||||
.desc = _desc, \
|
||||
.info = { \
|
||||
.name = #_name, \
|
||||
.type = DRI_INT, \
|
||||
DRI_CONF_RANGE_I(min, max), \
|
||||
}, \
|
||||
.value = { ._int = def }, \
|
||||
},
|
||||
|
||||
#define DRI_CONF_OPT_U64(_name, def, min, max, _desc) { \
|
||||
.desc = _desc, \
|
||||
.info = { \
|
||||
.name = #_name, \
|
||||
.type = DRI_UINT64, \
|
||||
DRI_CONF_RANGE_U64(min, max), \
|
||||
}, \
|
||||
.value = { ._uint64 = def }, \
|
||||
},
|
||||
|
||||
#define DRI_CONF_OPT_F(_name, def, min, max, _desc) { \
|
||||
.desc = _desc, \
|
||||
.info = { \
|
||||
.name = #_name, \
|
||||
.type = DRI_FLOAT, \
|
||||
DRI_CONF_RANGE_F(min, max), \
|
||||
}, \
|
||||
.value = { ._float = def }, \
|
||||
},
|
||||
|
||||
#define DRI_CONF_OPT_E(_name, def, min, max, _desc, values) { \
|
||||
.desc = _desc, \
|
||||
.info = { \
|
||||
.name = #_name, \
|
||||
.type = DRI_ENUM, \
|
||||
DRI_CONF_RANGE_I(min, max), \
|
||||
}, \
|
||||
.value = { ._int = def }, \
|
||||
.enums = { values }, \
|
||||
},
|
||||
|
||||
#define DRI_CONF_OPT_S(_name, def, _desc) { \
|
||||
.desc = _desc, \
|
||||
.info = { \
|
||||
.name = #_name, \
|
||||
.type = DRI_STRING, \
|
||||
}, \
|
||||
.value = { ._string = #def }, \
|
||||
},
|
||||
|
||||
#define DRI_CONF_OPT_S_NODEF(_name, _desc) { \
|
||||
.desc = _desc, \
|
||||
.info = { \
|
||||
.name = #_name, \
|
||||
.type = DRI_STRING, \
|
||||
}, \
|
||||
.value = { ._string = "" }, \
|
||||
},
|
||||
|
||||
/**
|
||||
* \brief Debugging options
|
||||
*/
|
||||
#define DRI_CONF_SECTION_DEBUG DRI_CONF_SECTION("Debugging")
|
||||
|
||||
#define DRI_CONF_ALWAYS_FLUSH_CACHE(def) \
|
||||
DRI_CONF_OPT_B(always_flush_cache, def, \
|
||||
"Enable flushing GPU caches with each draw call")
|
||||
|
||||
#define DRI_CONF_DISABLE_THROTTLING(def) \
|
||||
DRI_CONF_OPT_B(disable_throttling, def, \
|
||||
"Disable throttling on first batch after flush")
|
||||
|
||||
#define DRI_CONF_FORCE_GLSL_EXTENSIONS_WARN(def) \
|
||||
DRI_CONF_OPT_B(force_glsl_extensions_warn, def, \
|
||||
"Force GLSL extension default behavior to 'warn'")
|
||||
|
||||
#define DRI_CONF_DISABLE_BLEND_FUNC_EXTENDED(def) \
|
||||
DRI_CONF_OPT_B(disable_blend_func_extended, def, \
|
||||
"Disable dual source blending")
|
||||
|
||||
#define DRI_CONF_DISABLE_ARB_GPU_SHADER5(def) \
|
||||
DRI_CONF_OPT_B(disable_arb_gpu_shader5, def, \
|
||||
"Disable GL_ARB_gpu_shader5")
|
||||
|
||||
#define DRI_CONF_DUAL_COLOR_BLEND_BY_LOCATION(def) \
|
||||
DRI_CONF_OPT_B(dual_color_blend_by_location, def, \
|
||||
"Identify dual color blending sources by location rather than index")
|
||||
|
||||
#define DRI_CONF_DISABLE_GLSL_LINE_CONTINUATIONS(def) \
|
||||
DRI_CONF_OPT_B(disable_glsl_line_continuations, def, \
|
||||
"Disable backslash-based line continuations in GLSL source")
|
||||
|
||||
#define DRI_CONF_DISABLE_UNIFORM_ARRAY_RESIZE(def) \
|
||||
DRI_CONF_OPT_B(disable_uniform_array_resize, def, \
|
||||
"Disable the glsl optimisation that resizes uniform arrays")
|
||||
|
||||
#define DRI_CONF_ALIAS_SHADER_EXTENSION() \
|
||||
DRI_CONF_OPT_S_NODEF(alias_shader_extension, "Allow alias for shader extensions")
|
||||
|
||||
#define DRI_CONF_ALLOW_VERTEX_TEXTURE_BIAS(def) \
|
||||
DRI_CONF_OPT_B(allow_vertex_texture_bias, def, \
|
||||
"Allow GL2 vertex shaders to have access to texture2D/textureCube with bias variants")
|
||||
|
||||
#define DRI_CONF_FORCE_GLSL_VERSION(def) \
|
||||
DRI_CONF_OPT_I(force_glsl_version, def, 0, 999, \
|
||||
"Force a default GLSL version for shaders that lack an explicit #version line")
|
||||
|
||||
#define DRI_CONF_ALLOW_EXTRA_PP_TOKENS(def) \
|
||||
DRI_CONF_OPT_B(allow_extra_pp_tokens, def, \
|
||||
"Allow extra tokens at end of preprocessor directives.")
|
||||
|
||||
#define DRI_CONF_ALLOW_GLSL_EXTENSION_DIRECTIVE_MIDSHADER(def) \
|
||||
DRI_CONF_OPT_B(allow_glsl_extension_directive_midshader, def, \
|
||||
"Allow GLSL #extension directives in the middle of shaders")
|
||||
|
||||
#define DRI_CONF_ALLOW_GLSL_120_SUBSET_IN_110(def) \
|
||||
DRI_CONF_OPT_B(allow_glsl_120_subset_in_110, def, \
|
||||
"Allow a subset of GLSL 1.20 in GLSL 1.10 as needed by SPECviewperf13")
|
||||
|
||||
#define DRI_CONF_ALLOW_GLSL_EMBEDDED_STRUCTURE_DECLARATIONS(def) \
|
||||
DRI_CONF_OPT_B(allow_glsl_embedded_structure_declarations, def, \
|
||||
"Allow embedded structure declarations again in GLSL 1.20+")
|
||||
|
||||
#define DRI_CONF_ALLOW_GLSL_BUILTIN_CONST_EXPRESSION(def) \
|
||||
DRI_CONF_OPT_B(allow_glsl_builtin_const_expression, def, \
|
||||
"Allow builtins as part of constant expressions")
|
||||
|
||||
#define DRI_CONF_ALLOW_GLSL_RELAXED_ES(def) \
|
||||
DRI_CONF_OPT_B(allow_glsl_relaxed_es, def, \
|
||||
"Allow some relaxation of GLSL ES shader restrictions")
|
||||
|
||||
#define DRI_CONF_ALLOW_GLSL_BUILTIN_VARIABLE_REDECLARATION(def) \
|
||||
DRI_CONF_OPT_B(allow_glsl_builtin_variable_redeclaration, def, \
|
||||
"Allow GLSL built-in variables to be redeclared verbatim")
|
||||
|
||||
#define DRI_CONF_ALLOW_HIGHER_COMPAT_VERSION(def) \
|
||||
DRI_CONF_OPT_B(allow_higher_compat_version, def, \
|
||||
"Allow a higher compat profile (version 3.1+) for apps that request it")
|
||||
|
||||
#define DRI_CONF_ALLOW_GLSL_COMPAT_SHADERS(def) \
|
||||
DRI_CONF_OPT_B(allow_glsl_compat_shaders, def, \
|
||||
"Allow in GLSL: #version xxx compatibility")
|
||||
|
||||
#define DRI_CONF_FORCE_GLSL_ABS_SQRT(def) \
|
||||
DRI_CONF_OPT_B(force_glsl_abs_sqrt, def, \
|
||||
"Force computing the absolute value for sqrt() and inversesqrt()")
|
||||
|
||||
#define DRI_CONF_GLSL_CORRECT_DERIVATIVES_AFTER_DISCARD(def) \
|
||||
DRI_CONF_OPT_B(glsl_correct_derivatives_after_discard, def, \
|
||||
"Implicit and explicit derivatives after a discard behave as if the discard didn't happen")
|
||||
|
||||
#define DRI_CONF_GLSL_IGNORE_WRITE_TO_READONLY_VAR(def) \
|
||||
DRI_CONF_OPT_B(glsl_ignore_write_to_readonly_var, def, \
|
||||
"Forces the GLSL compiler to ignore writes to readonly vars rather than throwing an error")
|
||||
|
||||
#define DRI_CONF_ALLOW_GLSL_CROSS_STAGE_INTERPOLATION_MISMATCH(def) \
|
||||
DRI_CONF_OPT_B(allow_glsl_cross_stage_interpolation_mismatch, def, \
|
||||
"Allow interpolation qualifier mismatch across shader stages")
|
||||
|
||||
#define DRI_CONF_DO_DCE_BEFORE_CLIP_CULL_ANALYSIS(def) \
|
||||
DRI_CONF_OPT_B(do_dce_before_clip_cull_analysis, def, \
|
||||
"Use dead code elimitation before checking for invalid Clip*/CullDistance variables usage.")
|
||||
|
||||
#define DRI_CONF_ALLOW_DRAW_OUT_OF_ORDER(def) \
|
||||
DRI_CONF_OPT_B(allow_draw_out_of_order, def, \
|
||||
"Allow out-of-order draw optimizations. Set when Z fighting doesn't have to be accurate.")
|
||||
|
||||
#define DRI_CONF_GLTHREAD_NOP_CHECK_FRAMEBUFFER_STATUS(def) \
|
||||
DRI_CONF_OPT_B(glthread_nop_check_framebuffer_status, def, \
|
||||
"glthread always returns GL_FRAMEBUFFER_COMPLETE to prevent synchronization.")
|
||||
|
||||
#define DRI_CONF_FORCE_EXPLICIT_UNIFORM_LOC_ZERO() \
|
||||
DRI_CONF_OPT_S_NODEF(force_explicit_uniform_loc_zero, "Forces an explicit uniform location of zero for the uniform.")
|
||||
|
||||
#define DRI_CONF_FORCE_GL_VENDOR() \
|
||||
DRI_CONF_OPT_S_NODEF(force_gl_vendor, "Override GPU vendor string.")
|
||||
|
||||
#define DRI_CONF_FORCE_GL_RENDERER() \
|
||||
DRI_CONF_OPT_S_NODEF(force_gl_renderer, "Override GPU renderer string.")
|
||||
|
||||
#define DRI_CONF_FORCE_COMPAT_PROFILE(def) \
|
||||
DRI_CONF_OPT_B(force_compat_profile, def, \
|
||||
"Force an OpenGL compatibility context")
|
||||
|
||||
#define DRI_CONF_FORCE_COMPAT_SHADERS(def) \
|
||||
DRI_CONF_OPT_B(force_compat_shaders, def, \
|
||||
"Force OpenGL compatibility shaders")
|
||||
|
||||
#define DRI_CONF_FORCE_DIRECT_GLX_CONTEXT(def) \
|
||||
DRI_CONF_OPT_B(force_direct_glx_context, def, \
|
||||
"Force direct GLX context (even if indirect is requested)")
|
||||
|
||||
#define DRI_CONF_ALLOW_INVALID_GLX_DESTROY_WINDOW(def) \
|
||||
DRI_CONF_OPT_B(allow_invalid_glx_destroy_window, def, \
|
||||
"Allow passing an invalid window into glXDestroyWindow")
|
||||
|
||||
#define DRI_CONF_KEEP_NATIVE_WINDOW_GLX_DRAWABLE(def) \
|
||||
DRI_CONF_OPT_B(keep_native_window_glx_drawable, def, \
|
||||
"Keep GLX drawable created from native window when switch context")
|
||||
|
||||
#define DRI_CONF_OVERRIDE_VRAM_SIZE() \
|
||||
DRI_CONF_OPT_I(override_vram_size, -1, -1, 2147483647, \
|
||||
"Override the VRAM size advertised to the application in MiB (-1 = default)")
|
||||
|
||||
#define DRI_CONF_FORCE_GL_MAP_BUFFER_SYNCHRONIZED(def) \
|
||||
DRI_CONF_OPT_B(force_gl_map_buffer_synchronized, def, "Override GL_MAP_UNSYNCHRONIZED_BIT.")
|
||||
|
||||
#define DRI_CONF_FORCE_GL_DEPTH_COMPONENT_TYPE_INT(def) \
|
||||
DRI_CONF_OPT_B(force_gl_depth_component_type_int, def, "Override GL_DEPTH_COMPONENT type from unsigned short to unsigned int")
|
||||
|
||||
#define DRI_CONF_TRANSCODE_ETC(def) \
|
||||
DRI_CONF_OPT_B(transcode_etc, def, "Transcode ETC formats to DXTC if unsupported")
|
||||
|
||||
#define DRI_CONF_TRANSCODE_ASTC(def) \
|
||||
DRI_CONF_OPT_B(transcode_astc, def, "Transcode ASTC formats to DXTC if unsupported")
|
||||
|
||||
#define DRI_CONF_ALLOW_COMPRESSED_FALLBACK(def) \
|
||||
DRI_CONF_OPT_B(allow_compressed_fallback, def, "Allow fallback to uncompressed formats for unsupported compressed formats")
|
||||
|
||||
#define DRI_CONF_MESA_EXTENSION_OVERRIDE() \
|
||||
DRI_CONF_OPT_S_NODEF(mesa_extension_override, \
|
||||
"Allow enabling/disabling a list of extensions")
|
||||
|
||||
#define DRI_CONF_GLX_EXTENSION_OVERRIDE() \
|
||||
DRI_CONF_OPT_S_NODEF(glx_extension_override, \
|
||||
"Allow enabling/disabling a list of GLX extensions")
|
||||
|
||||
#define DRI_CONF_GLX_CLEAR_CONTEXT_RESET_ISOLATION_BIT(def) \
|
||||
DRI_CONF_OPT_B(glx_clear_context_reset_isolation_bit, def, "Clear context reset isolation bit before creating context")
|
||||
|
||||
#define DRI_CONF_INDIRECT_GL_EXTENSION_OVERRIDE() \
|
||||
DRI_CONF_OPT_S_NODEF(indirect_gl_extension_override, \
|
||||
"Allow enabling/disabling a list of indirect-GL extensions")
|
||||
|
||||
#define DRI_CONF_FORCE_PROTECTED_CONTENT_CHECK(def) \
|
||||
DRI_CONF_OPT_B(force_protected_content_check, def, \
|
||||
"Reject image import if protected_content attribute doesn't match")
|
||||
|
||||
#define DRI_CONF_IGNORE_MAP_UNSYNCHRONIZED(def) \
|
||||
DRI_CONF_OPT_B(ignore_map_unsynchronized, def, \
|
||||
"Ignore GL_MAP_UNSYNCHRONIZED_BIT, workaround for games that use it incorrectly")
|
||||
|
||||
#define DRI_CONF_VK_LOWER_TERMINATE_TO_DISCARD(def) \
|
||||
DRI_CONF_OPT_B(vk_lower_terminate_to_discard, def, \
|
||||
"Lower terminate to discard (which is implicitly demote)")
|
||||
|
||||
#define DRI_CONF_LIMIT_TRIG_INPUT_RANGE(def) \
|
||||
DRI_CONF_OPT_B(limit_trig_input_range, def, \
|
||||
"Limit trig input range to [-2p : 2p] to improve sin/cos calculation precision on Intel")
|
||||
|
||||
#define DRI_CONF_NO_16BIT(def) \
|
||||
DRI_CONF_OPT_B(no_16bit, def, \
|
||||
"Disable 16-bit instructions")
|
||||
|
||||
#define DRI_CONF_IGNORE_DISCARD_FRAMEBUFFER(def) \
|
||||
DRI_CONF_OPT_B(ignore_discard_framebuffer, def, \
|
||||
"Ignore glDiscardFramebuffer/glInvalidateFramebuffer, workaround for games that use it incorrectly")
|
||||
|
||||
#define DRI_CONF_FORCE_VK_VENDOR() \
|
||||
DRI_CONF_OPT_I(force_vk_vendor, 0, -1, 2147483647, "Override GPU vendor id")
|
||||
|
||||
#define DRI_CONFIG_INTEL_TBIMR(def) \
|
||||
DRI_CONF_OPT_B(intel_tbimr, def, "Enable TBIMR tiled rendering")
|
||||
|
||||
#define DRI_CONFIG_INTEL_FORCE_COMPUTE_SURFACE_PREFETCH(def) \
|
||||
DRI_CONF_OPT_B(intel_force_compute_surface_prefetch, def, \
|
||||
"Enable binding table surface prefteching for compute shaders")
|
||||
|
||||
#define DRI_CONFIG_INTEL_FORCE_SAMPLER_PREFETCH(def) \
|
||||
DRI_CONF_OPT_B(intel_force_sampler_prefetch, def, \
|
||||
"Enable binding table sampler prefteching")
|
||||
|
||||
#define DRI_CONFIG_INTEL_VF_DISTRIBUTION(def) \
|
||||
DRI_CONF_OPT_B(intel_vf_distribution, def, "Enable geometry distribution")
|
||||
|
||||
#define DRI_CONFIG_INTEL_TE_DISTRIBUTION(def) \
|
||||
DRI_CONF_OPT_B(intel_te_distribution, def, "Enable tesselation distribution")
|
||||
|
||||
#define DRI_CONFIG_INTEL_STORAGE_CACHE_POLICY_WT(def) \
|
||||
DRI_CONF_OPT_B(intel_storage_cache_policy_wt, def, "Enable write-through cache policy for storage buffers/images.")
|
||||
|
||||
#define DRI_CONF_INTEL_ENABLE_WA_14018912822(def) \
|
||||
DRI_CONF_OPT_B(intel_enable_wa_14018912822, def, \
|
||||
"Intel workaround for using zero blend constants")
|
||||
|
||||
#define DRI_CONF_INTEL_ENABLE_WA_14024015672_MSAA(def) \
|
||||
DRI_CONF_OPT_B(intel_enable_wa_14024015672_msaa, def, \
|
||||
"Intel workaround for RHWO MSAA")
|
||||
|
||||
#define DRI_CONF_INTEL_SAMPLER_ROUTE_TO_LSC(def) \
|
||||
DRI_CONF_OPT_B(intel_sampler_route_to_lsc, def, \
|
||||
"Intel specific toggle to enable sampler route to LSC")
|
||||
|
||||
#define DRI_CONF_INTEL_DISABLE_THREADED_CONTEXT(def) \
|
||||
DRI_CONF_OPT_B(intel_disable_threaded_context, def, "Disable threaded context")
|
||||
|
||||
#define DRI_CONF_VK_REQUIRE_ASTC(def) \
|
||||
DRI_CONF_OPT_B(vk_require_astc, def, \
|
||||
"Implement emulated ASTC on HW that does not support it")
|
||||
|
||||
/**
|
||||
* \brief Image quality-related options
|
||||
*/
|
||||
#define DRI_CONF_SECTION_QUALITY DRI_CONF_SECTION("Image Quality")
|
||||
|
||||
#define DRI_CONF_PP_LOWER_DEPTH_RANGE_RATE() \
|
||||
DRI_CONF_OPT_F(lower_depth_range_rate, 1.0, 0.0, 1.0, \
|
||||
"Lower depth range for fixing misrendering issues due to z coordinate float point interpolation accuracy")
|
||||
|
||||
/**
|
||||
* \brief Performance-related options
|
||||
*/
|
||||
#define DRI_CONF_SECTION_PERFORMANCE DRI_CONF_SECTION("Performance")
|
||||
|
||||
#define DRI_CONF_VBLANK_NEVER 0
|
||||
#define DRI_CONF_VBLANK_DEF_INTERVAL_0 1
|
||||
#define DRI_CONF_VBLANK_DEF_INTERVAL_1 2
|
||||
#define DRI_CONF_VBLANK_ALWAYS_SYNC 3
|
||||
#define DRI_CONF_VBLANK_MODE(def) \
|
||||
DRI_CONF_OPT_E(vblank_mode, def, 0, 3, \
|
||||
"Synchronization with vertical refresh (swap intervals)", \
|
||||
DRI_CONF_ENUM(0,"Never synchronize with vertical refresh, ignore application's choice") \
|
||||
DRI_CONF_ENUM(1,"Initial swap interval 0, obey application's choice") \
|
||||
DRI_CONF_ENUM(2,"Initial swap interval 1, obey application's choice") \
|
||||
DRI_CONF_ENUM(3,"Always synchronize with vertical refresh, application chooses the minimum swap interval"))
|
||||
|
||||
#define DRI_CONF_ADAPTIVE_SYNC(def) \
|
||||
DRI_CONF_OPT_B(adaptive_sync,def, \
|
||||
"Adapt the monitor sync to the application performance (when possible)")
|
||||
|
||||
#define DRI_CONF_BLOCK_ON_DEPLETED_BUFFERS(def) \
|
||||
DRI_CONF_OPT_B(block_on_depleted_buffers, def, \
|
||||
"Block clients using buffer backpressure until new buffer is available to reduce latency")
|
||||
|
||||
#define DRI_CONF_VK_WSI_FORCE_BGRA8_UNORM_FIRST(def) \
|
||||
DRI_CONF_OPT_B(vk_wsi_force_bgra8_unorm_first, def, \
|
||||
"Force vkGetPhysicalDeviceSurfaceFormatsKHR to return VK_FORMAT_B8G8R8A8_UNORM as the first format")
|
||||
|
||||
#define DRI_CONF_VK_WSI_FORCE_SWAPCHAIN_TO_CURRENT_EXTENT(def) \
|
||||
DRI_CONF_OPT_B(vk_wsi_force_swapchain_to_current_extent, def, \
|
||||
"Force VkSwapchainCreateInfoKHR::imageExtent to be VkSurfaceCapabilities2KHR::currentExtent")
|
||||
|
||||
#define DRI_CONF_VK_WSI_DISABLE_UNORDERED_SUBMITS(def) \
|
||||
DRI_CONF_OPT_B(vk_wsi_disable_unordered_submits, def, \
|
||||
"Disable unordered WSI submits to workaround application synchronization bugs")
|
||||
|
||||
#define DRI_CONF_VK_X11_OVERRIDE_MIN_IMAGE_COUNT(def) \
|
||||
DRI_CONF_OPT_I(vk_x11_override_min_image_count, def, 0, 999, \
|
||||
"Override the VkSurfaceCapabilitiesKHR::minImageCount (0 = no override)")
|
||||
|
||||
#define DRI_CONF_VK_X11_STRICT_IMAGE_COUNT(def) \
|
||||
DRI_CONF_OPT_B(vk_x11_strict_image_count, def, \
|
||||
"Force the X11 WSI to create exactly the number of image specified by the application in VkSwapchainCreateInfoKHR::minImageCount")
|
||||
|
||||
#define DRI_CONF_VK_X11_ENSURE_MIN_IMAGE_COUNT(def) \
|
||||
DRI_CONF_OPT_B(vk_x11_ensure_min_image_count, def, \
|
||||
"Force the X11 WSI to create at least the number of image specified by the driver in VkSurfaceCapabilitiesKHR::minImageCount")
|
||||
|
||||
#define DRI_CONF_VK_X11_IGNORE_SUBOPTIMAL(def) \
|
||||
DRI_CONF_OPT_B(vk_x11_ignore_suboptimal, def, \
|
||||
"Force the X11 WSI to never report VK_SUBOPTIMAL_KHR")
|
||||
|
||||
#define DRI_CONF_VK_XWAYLAND_WAIT_READY(def) \
|
||||
DRI_CONF_OPT_B(vk_xwayland_wait_ready, def, \
|
||||
"Wait for fences before submitting buffers to Xwayland")
|
||||
|
||||
#define DRI_CONF_MESA_GLTHREAD_DRIVER(def) \
|
||||
DRI_CONF_OPT_B(mesa_glthread_driver, def, \
|
||||
"Enable offloading GL driver work to a separate thread")
|
||||
|
||||
#define DRI_CONF_MESA_NO_ERROR(def) \
|
||||
DRI_CONF_OPT_B(mesa_no_error, def, \
|
||||
"Disable GL driver error checking")
|
||||
|
||||
#define DRI_CONF_SHADER_SPILLING_RATE(def) \
|
||||
DRI_CONF_OPT_I(shader_spilling_rate, def, 0, 100, \
|
||||
"Speed up shader compilation by increasing number of spilled registers after ra_allocate failure")
|
||||
/**
|
||||
* \brief Miscellaneous configuration options
|
||||
*/
|
||||
#define DRI_CONF_SECTION_MISCELLANEOUS DRI_CONF_SECTION("Miscellaneous")
|
||||
|
||||
#define DRI_CONF_ALWAYS_HAVE_DEPTH_BUFFER(def) \
|
||||
DRI_CONF_OPT_B(always_have_depth_buffer, def, \
|
||||
"Create all visuals with a depth buffer")
|
||||
|
||||
#define DRI_CONF_GLSL_ZERO_INIT(def) \
|
||||
DRI_CONF_OPT_B(glsl_zero_init, def, \
|
||||
"Force uninitialized variables to default to zero")
|
||||
|
||||
#define DRI_CONF_VS_POSITION_ALWAYS_INVARIANT(def) \
|
||||
DRI_CONF_OPT_B(vs_position_always_invariant, def, \
|
||||
"Force the vertex shader's gl_Position output to be considered 'invariant'")
|
||||
|
||||
#define DRI_CONF_VS_POSITION_ALWAYS_PRECISE(def) \
|
||||
DRI_CONF_OPT_B(vs_position_always_precise, def, \
|
||||
"Force the vertex shader's gl_Position output to be considered 'precise'")
|
||||
|
||||
#define DRI_CONF_ALLOW_RGB10_CONFIGS(def) \
|
||||
DRI_CONF_OPT_B(allow_rgb10_configs, def, \
|
||||
"Allow exposure of visuals and fbconfigs with rgb10a2 formats")
|
||||
|
||||
#define DRI_CONF_ALLOW_RGB16_CONFIGS(def) \
|
||||
DRI_CONF_OPT_B(allow_rgb16_configs, def, \
|
||||
"Allow exposure of visuals and fbconfigs with rgb16 and rgba16 formats")
|
||||
|
||||
#define DRI_CONF_FORCE_INTEGER_TEX_NEAREST(def) \
|
||||
DRI_CONF_OPT_B(force_integer_tex_nearest, def, \
|
||||
"Force integer textures to use nearest filtering")
|
||||
|
||||
/* The GL spec does not allow this but wine has translation bug:
|
||||
https://bugs.winehq.org/show_bug.cgi?id=54787
|
||||
*/
|
||||
#define DRI_CONF_ALLOW_MULTISAMPLED_COPYTEXIMAGE(def) \
|
||||
DRI_CONF_OPT_B(allow_multisampled_copyteximage, def, \
|
||||
"Allow CopyTexSubImage and other to copy sampled framebuffer")
|
||||
|
||||
#define DRI_CONF_VERTEX_PROGRAM_DEFAULT_OUT(def) \
|
||||
DRI_CONF_OPT_B(vertex_program_default_out, def, \
|
||||
"Initialize outputs of vertex program to a default value vec4(0, 0, 0, 1)")
|
||||
|
||||
#define DRI_CONF_HEAP_MEMORY_PERCENT(def) \
|
||||
DRI_CONF_OPT_F(heap_memory_percent, def, 0.0, 1.0, \
|
||||
"Percentage of total system memory to report as gpu heap memory (0 = driver default)")
|
||||
|
||||
#define DRI_CONF_VK_ZERO_VRAM(def) \
|
||||
DRI_CONF_OPT_B(vk_zero_vram, def, \
|
||||
"Initialize to zero all VRAM allocations")
|
||||
|
||||
/**
|
||||
* \brief Initialization configuration options
|
||||
*/
|
||||
#define DRI_CONF_SECTION_INITIALIZATION DRI_CONF_SECTION("Initialization")
|
||||
|
||||
#define DRI_CONF_DEVICE_ID_PATH_TAG() \
|
||||
DRI_CONF_OPT_S_NODEF(device_id, "Define the graphic device to use if possible")
|
||||
|
||||
#define DRI_CONF_DRI_DRIVER() \
|
||||
DRI_CONF_OPT_S_NODEF(dri_driver, "Override the DRI driver to load")
|
||||
|
||||
#define DRI_CONF_V3D_NONMSAA_TEXTURE_SIZE_LIMIT(def) \
|
||||
DRI_CONF_OPT_B(v3d_nonmsaa_texture_size_limit, def, \
|
||||
"Report the non-MSAA-only texture size limit")
|
||||
|
||||
/**
|
||||
* \brief wgl specific configuration options
|
||||
*/
|
||||
|
||||
#define DRI_CONF_WGL_FRAME_LATENCY(def) \
|
||||
DRI_CONF_OPT_I(wgl_frame_latency, def, 1, 16, \
|
||||
"Override default maximum frame latency")
|
||||
|
||||
#define DRI_CONF_WGL_SWAP_INTERVAL(def) \
|
||||
DRI_CONF_OPT_I(wgl_swap_interval, def, 1, 4, \
|
||||
"Override default swap interval")
|
||||
|
||||
#define DRI_CONF_WGL_REQUIRE_GDI_COMPAT(def) \
|
||||
DRI_CONF_OPT_B(wgl_require_gdi_compat, def, \
|
||||
"Require all pixel formats to have PFD_SUPPORT_GDI flag")
|
||||
|
||||
/**
|
||||
* \brief virgl specific configuration options
|
||||
*/
|
||||
|
||||
#define DRI_CONF_GLES_EMULATE_BGRA(def) \
|
||||
DRI_CONF_OPT_B(gles_emulate_bgra, def, \
|
||||
"On GLES emulate BGRA formats by using a swizzled RGBA format")
|
||||
|
||||
#define DRI_CONF_GLES_APPLY_BGRA_DEST_SWIZZLE(def) \
|
||||
DRI_CONF_OPT_B(gles_apply_bgra_dest_swizzle, def, \
|
||||
"When the BGRA formats are emulated by using swizzled RGBA formats on GLES apply the swizzle when writing")
|
||||
|
||||
#define DRI_CONF_GLES_SAMPLES_PASSED_VALUE(def, minimum, maximum) \
|
||||
DRI_CONF_OPT_I(gles_samples_passed_value, def, minimum, maximum, \
|
||||
"GL_SAMPLES_PASSED value when emulated by GL_ANY_SAMPLES_PASSED")
|
||||
|
||||
#define DRI_CONF_FORMAT_L8_SRGB_ENABLE_READBACK(def) \
|
||||
DRI_CONF_OPT_B(format_l8_srgb_enable_readback, def, \
|
||||
"Force-enable reading back L8_SRGB textures")
|
||||
|
||||
#define DRI_CONF_VIRGL_SHADER_SYNC(def) \
|
||||
DRI_CONF_OPT_B(virgl_shader_sync, def, \
|
||||
"Make shader compilation synchronous")
|
||||
|
||||
/**
|
||||
* \brief freedreno specific configuration options
|
||||
*/
|
||||
|
||||
#define DRI_CONF_DISABLE_CONSERVATIVE_LRZ(def) \
|
||||
DRI_CONF_OPT_B(disable_conservative_lrz, def, \
|
||||
"Disable conservative LRZ")
|
||||
|
||||
#define DRI_CONF_DISABLE_EXPLICIT_SYNC_HEURISTIC(def) \
|
||||
DRI_CONF_OPT_B(disable_explicit_sync_heuristic, def, \
|
||||
"Disable Explicit-sync heuristic")
|
||||
|
||||
/**
|
||||
* \brief panfrost specific configuration options
|
||||
*/
|
||||
|
||||
#define DRI_CONF_PAN_COMPUTE_CORE_MASK(def) \
|
||||
DRI_CONF_OPT_U64(pan_compute_core_mask, def, 0, UINT64_MAX, \
|
||||
"Bitmask of shader cores that may be used for compute jobs. If unset, defaults to scheduling across all available cores.")
|
||||
|
||||
#define DRI_CONF_PAN_FRAGMENT_CORE_MASK(def) \
|
||||
DRI_CONF_OPT_U64(pan_fragment_core_mask, def, 0, UINT64_MAX, \
|
||||
"Bitmask of shader cores that may be used for fragment jobs. If unset, defaults to scheduling across all available cores.")
|
||||
|
||||
#define DRI_CONF_PAN_ENABLE_VERTEX_PIPELINE_STORES_ATOMICS(def) \
|
||||
DRI_CONF_OPT_B(pan_enable_vertex_pipeline_stores_atomics, def, \
|
||||
"Enable vertexPipelineStoresAndAtomics on v13+ (This cannot work on older generation because of speculative behaviors around vertices)")
|
||||
|
||||
#define DRI_CONF_PAN_FORCE_ENABLE_SHADER_ATOMICS(def) \
|
||||
DRI_CONF_OPT_B(pan_force_enable_shader_atomics, def, \
|
||||
"Enable fragmentStoresAndAtomics and vertexPipelineStoresAndAtomics on any architecture. (This may not work reliably and is for debug purposes only!)")
|
||||
|
||||
/**
|
||||
* \brief Honeykrisp specific configuration options
|
||||
*/
|
||||
|
||||
#define DRI_CONF_HK_DISABLE_BORDER_EMULATION(def) \
|
||||
DRI_CONF_OPT_B(hk_disable_border_emulation, def, \
|
||||
"Disable custom border colour emulation")
|
||||
|
||||
#define DRI_CONF_HK_FAKE_MINMAX(def) \
|
||||
DRI_CONF_OPT_B(hk_fake_minmax, def, \
|
||||
"Fake support for min/max filtering")
|
||||
|
||||
#define DRI_CONF_HK_IMAGE_VIEW_MIN_LOD(def) \
|
||||
DRI_CONF_OPT_B(hk_image_view_min_lod, def, \
|
||||
"Emulate VK_EXT_image_view_min_lod (conformant but slower)")
|
||||
|
||||
#define DRI_CONF_HK_ENABLE_VERTEX_PIPELINE_STORES_ATOMICS(def) \
|
||||
DRI_CONF_OPT_B(hk_enable_vertex_pipeline_stores_atomics, def, \
|
||||
"Enable vertexPipelineStoresAndAtomics")
|
||||
|
||||
/**
|
||||
* \brief venus specific configuration options
|
||||
*/
|
||||
#define DRI_CONF_VENUS_IMPLICIT_FENCING(def) \
|
||||
DRI_CONF_OPT_B(venus_implicit_fencing, def, \
|
||||
"Assume the virtio-gpu kernel driver supports implicit fencing")
|
||||
|
||||
#define DRI_CONF_VENUS_WSI_MULTI_PLANE_MODIFIERS(def) \
|
||||
DRI_CONF_OPT_B(venus_wsi_multi_plane_modifiers, def, \
|
||||
"Enable support of multi-plane format modifiers for wsi images")
|
||||
|
||||
/**
|
||||
* \brief HASVK specific configuration options
|
||||
*/
|
||||
|
||||
#define DRI_CONF_HASVK_ASSUME_FULL_SUBGROUPS(def) \
|
||||
DRI_CONF_OPT_I(anv_assume_full_subgroups, def, 0, 32, \
|
||||
"Allow assuming full subgroups requirement even when it's not specified explicitly and set the given size")
|
||||
|
||||
#define DRI_CONF_HASVK_OVERRIDE_API_VERSION(def) \
|
||||
DRI_CONF_OPT_B(hasvk_report_vk_1_3_version, def, \
|
||||
"Override intel_hasvk API version")
|
||||
|
||||
#define DRI_CONF_HASVK_SAMPLE_MASK_OUT_OPENGL_BEHAVIOUR(def) \
|
||||
DRI_CONF_OPT_B(anv_sample_mask_out_opengl_behaviour, def, \
|
||||
"Ignore sample mask out when having single sampled target")
|
||||
|
||||
/**
|
||||
* \brief DZN specific configuration options
|
||||
*/
|
||||
|
||||
#define DRI_CONF_DZN_CLAIM_WIDE_LINES(def) \
|
||||
DRI_CONF_OPT_B(dzn_claim_wide_lines, def, "Claim wide line support")
|
||||
|
||||
#define DRI_CONF_DZN_ENABLE_8BIT_LOADS_STORES(def) \
|
||||
DRI_CONF_OPT_B(dzn_enable_8bit_loads_stores, def, "Enable VK_KHR_8bit_loads_stores")
|
||||
|
||||
#define DRI_CONF_DZN_DISABLE(def) \
|
||||
DRI_CONF_OPT_B(dzn_disable, def, "Fail instance creation")
|
||||
|
||||
/**
|
||||
* \brief NVK specific configuration options
|
||||
*/
|
||||
|
||||
#define DRI_CONF_NVK_APP_LAYER() DRI_CONF_OPT_S_NODEF(nvk_app_layer, "Select an application layer.")
|
||||
|
||||
/**
|
||||
* \brief Asahi specific configuration options
|
||||
*/
|
||||
#define DRI_CONF_ASAHI_NO_FP16(def) \
|
||||
DRI_CONF_OPT_B(asahi_no_fp16, def, \
|
||||
"Disable 16-bit float support")
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user