diff options
author | Tim Rowley <[email protected]> | 2017-06-21 14:56:24 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-06-30 13:26:19 -0500 |
commit | ab564c7ab4396b9b9059bb18c571bb47d7df7ce2 (patch) | |
tree | 3f81e578d643d9677d89bd531de6ac12cb3b96c8 /src/gallium | |
parent | 64af92c9778dfba863391f947fa4b3df3fd57255 (diff) |
swr/rast: move default split size from driver to rasterizer
Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/codegen/knob_defs.py | 2 | ||||
-rw-r--r-- | src/gallium/drivers/swr/swr_screen.cpp | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/knob_defs.py b/src/gallium/drivers/swr/rasterizer/codegen/knob_defs.py index 02436f223ac..c8eb2a38481 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/knob_defs.py +++ b/src/gallium/drivers/swr/rasterizer/codegen/knob_defs.py @@ -138,7 +138,7 @@ KNOBS = [ ['MAX_PRIMS_PER_DRAW', { 'type' : 'uint32_t', - 'default' : '2040', + 'default' : '49152', 'desc' : ['Maximum primitives in a single Draw().', 'Larger primitives are split into smaller Draw calls.', 'Should be a multiple of (3 * vectorWidth).'], diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp index a80ec2adbae..b7f06c07192 100644 --- a/src/gallium/drivers/swr/swr_screen.cpp +++ b/src/gallium/drivers/swr/swr_screen.cpp @@ -1065,10 +1065,6 @@ swr_create_screen_internal(struct sw_winsys *winsys) if (!screen) return NULL; - if (!getenv("KNOB_MAX_PRIMS_PER_DRAW")) { - g_GlobalKnobs.MAX_PRIMS_PER_DRAW.Value(49152); - } - if (!lp_build_init()) { FREE(screen); return NULL; |