1 # Copyright (C) 2014-2016 Intel Corporation. All Rights Reserved.
3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the "Software"),
5 # to deal in the Software without restriction, including without limitation
6 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 # and/or sell copies of the Software, and to permit persons to whom the
8 # Software is furnished to do so, subject to the following conditions:
10 # The above copyright notice and this permission notice (including the next
11 # paragraph) shall be included in all copies or substantial portions of the
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
26 ['ENABLE_ASSERT_DIALOGS', {
29 'desc' : ['Use dialogs when asserts fire.',
30 'Asserts are only enabled in debug builds'],
37 'desc' : ['If enabled will perform all rendering on the API thread.',
38 'This is useful mainly for debugging purposes.'],
45 'desc' : ['Dumps shader LLVM IR at various stages of jit compilation.'],
49 ['USE_GENERIC_STORETILE', {
52 'desc' : ['Always use generic function for performing StoreTile.',
53 'Will be slightly slower than using optimized (jitted) path'],
60 'desc' : ['Replace 3D primitive execute with a SWRClearRT operation and',
61 'defer clear execution to first backend op on hottile, or hottile store'],
68 'desc' : ['Starting NUMA node index to use when allocating compute resources.',
69 'Setting this to a non-zero value will reduce the maximum # of NUMA nodes used.'],
76 'default' : '1' if sys
.platform
== 'win32' else '0',
77 'desc' : ['Maximum # of NUMA-nodes per system used for worker threads',
78 ' 0 == ALL NUMA-nodes in the system',
79 ' N == Use at most N NUMA-nodes for rendering'],
86 'desc' : ['Starting core index to use when allocating compute resources.',
87 'Setting this to a non-zero value will reduce the maximum # of cores used.'],
92 ['MAX_CORES_PER_NUMA_NODE', {
95 'desc' : ['Maximum # of cores per NUMA-node used for worker threads.',
96 ' 0 == ALL non-API thread cores per NUMA-node',
97 ' N == Use at most N cores per NUMA-node'],
104 'desc' : ['Starting thread index to use when allocating compute resources.',
105 'Setting this to a non-zero value will reduce the maximum # of threads used.'],
110 ['MAX_THREADS_PER_CORE', {
113 'desc' : ['Maximum # of (hyper)threads per physical core used for worker threads.',
114 ' 0 == ALL hyper-threads per core',
115 ' N == Use at most N hyper-threads per physical core'],
119 ['MAX_WORKER_THREADS', {
122 'desc' : ['Maximum worker threads to spawn.',
124 'IMPORTANT: If this is non-zero, no worker threads will be bound to',
125 'specific HW threads. They will all be "floating" SW threads.',
126 'In this case, the above 3 KNOBS will be ignored.'],
130 ['BUCKETS_START_FRAME', {
133 'desc' : ['Frame from when to start saving buckets data.',
135 'NOTE: KNOB_ENABLE_RDTSC must be enabled in core/knobs.h',
136 'for this to have an effect.'],
140 ['BUCKETS_END_FRAME', {
143 'desc' : ['Frame at which to stop saving buckets data.',
145 'NOTE: KNOB_ENABLE_RDTSC must be enabled in core/knobs.h',
146 'for this to have an effect.'],
150 ['WORKER_SPIN_LOOP_COUNT', {
153 'desc' : ['Number of spin-loop iterations worker threads will perform',
154 'before going to sleep when waiting for work'],
158 ['MAX_DRAWS_IN_FLIGHT', {
161 'desc' : ['Maximum number of draws outstanding before API thread blocks.',
162 'This value MUST be evenly divisible into 2^32'],
166 ['MAX_PRIMS_PER_DRAW', {
169 'desc' : ['Maximum primitives in a single Draw().',
170 'Larger primitives are split into smaller Draw calls.',
171 'Should be a multiple of (3 * vectorWidth).'],
175 ['MAX_TESS_PRIMS_PER_DRAW', {
178 'desc' : ['Maximum primitives in a single Draw() with tessellation enabled.',
179 'Larger primitives are split into smaller Draw calls.',
180 'Should be a multiple of (vectorWidth).'],
185 ['DEBUG_OUTPUT_DIR', {
186 'type' : 'std::string',
187 'default' : r
'%TEMP%\Rast\DebugOutput' if sys
.platform
== 'win32' else '/tmp/Rast/DebugOutput',
188 'desc' : ['Output directory for debug data.'],
189 'category' : 'debug',
192 ['JIT_ENABLE_CACHE', {
195 'desc' : ['Enables caching of compiled shaders'],
196 'category' : 'debug',
200 'type' : 'std::string',
201 'default' : r
'%TEMP%\SWR\JitCache' if sys
.platform
== 'win32' else '${HOME}/.swr/jitcache',
202 'desc' : ['Cache directory for compiled shaders.'],
203 'category' : 'debug',
209 'desc' : ['Disable per-draw/dispatch execution'],
216 'desc' : ['Stop per-draw execution at worker FE',
218 'NOTE: Requires KNOB_ENABLE_TOSS_POINTS to be enabled in core/knobs.h'],
226 'desc' : ['Stop per-draw execution at vertex fetch',
228 'NOTE: Requires KNOB_ENABLE_TOSS_POINTS to be enabled in core/knobs.h'],
236 'desc' : ['Stop per-draw execution at input assembler',
238 'NOTE: Requires KNOB_ENABLE_TOSS_POINTS to be enabled in core/knobs.h'],
246 'desc' : ['Stop per-draw execution at vertex shader',
248 'NOTE: Requires KNOB_ENABLE_TOSS_POINTS to be enabled in core/knobs.h'],
253 ['TOSS_SETUP_TRIS', {
256 'desc' : ['Stop per-draw execution at primitive setup',
258 'NOTE: Requires KNOB_ENABLE_TOSS_POINTS to be enabled in core/knobs.h'],
266 'desc' : ['Stop per-draw execution at primitive binning',
268 'NOTE: Requires KNOB_ENABLE_TOSS_POINTS to be enabled in core/knobs.h'],
276 'desc' : ['Stop per-draw execution at rasterizer',
278 'NOTE: Requires KNOB_ENABLE_TOSS_POINTS to be enabled in core/knobs.h'],