swr: [rasterizer core] Reset DrawContext arena at end of draw rather than upon reclai...
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 17 Mar 2016 22:50:46 +0000 (16:50 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 25 Mar 2016 19:45:39 +0000 (14:45 -0500)
Keeps overall memory consumption lower.
Also, remove unused knobs.

src/gallium/drivers/swr/rasterizer/core/threads.cpp
src/gallium/drivers/swr/rasterizer/scripts/knob_defs.py

index c4567ea..5740804 100644 (file)
@@ -290,6 +290,10 @@ INLINE void CompleteDrawContext(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC)
     {
         _ReadWriteBarrier();
 
+        // Cleanup memory allocations
+        pDC->pArena->Reset();
+        pDC->pTileMgr->initialize();
+
         pContext->dcRing.Dequeue();  // Remove from tail
     }
 }
index 5843abf..0f3ded6 100644 (file)
@@ -144,27 +144,6 @@ KNOBS = [
         'category'  : 'perf',
     }],
 
-    ['MAX_FRAC_ODD_TESS_FACTOR', {
-        'type'      : 'float',
-        'default'   : '63.0f',
-        'desc'      : ['(DEBUG) Maximum tessellation factor for fractional-odd partitioning.'],
-        'category'  : 'perf',
-    }],
-
-    ['MAX_FRAC_EVEN_TESS_FACTOR', {
-        'type'      : 'float',
-        'default'   : '64.0f',
-        'desc'      : ['(DEBUG) Maximum tessellation factor for fractional-even partitioning.'],
-        'category'  : 'perf',
-    }],
-
-    ['MAX_INTEGER_TESS_FACTOR', {
-        'type'      : 'uint32_t',
-        'default'   : '64',
-        'desc'      : ['(DEBUG) Maximum tessellation factor for integer partitioning.'],
-        'category'  : 'perf',
-    }],
-
 
     ['BUCKETS_ENABLE_THREADVIZ', {
         'type'      : 'bool',