swr: [rasterizer core] Cleanup state ring arena after last draw that references it...
[mesa.git] / src / gallium / drivers / swr / rasterizer / core / context.h
index b8f15cae4a325ca2c0b71ae689ab7966dfbf77de..39f23372a18e04e52795913d83370ff4f42a304b 100644 (file)
@@ -402,6 +402,8 @@ struct DRAW_CONTEXT
     CachingArena* pArena;
 
     uint8_t* pSpillFill[KNOB_MAX_NUM_THREADS];  // Scratch space used for spill fills.
+
+    bool  cleanupState; // True if this is the last draw using an entry in the state ring.
 };
 
 INLINE const API_STATE& GetApiState(const DRAW_CONTEXT* pDC)