swr/rast: move default split size from driver to rasterizer

Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>
This commit is contained in:
Tim Rowley 2017-06-21 14:56:24 -05:00
parent 64af92c977
commit ab564c7ab4
2 changed files with 1 additions and 5 deletions

View File

@ -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).'],

View File

@ -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;