panfrost: split asserts in pandecode
[mesa.git] / src / gallium / state_trackers / wgl / stw_device.h
index 3f0dffe408b7ec46475e543a8989795ba0e4b0ad..766975c292c7115fbfdf5ef7fc997971c083953e 100644 (file)
@@ -67,12 +67,22 @@ struct stw_device
    CRITICAL_SECTION ctx_mutex;
    struct handle_table *ctx_table;
    
+   /* TODO: use an atomic counter to track the number of locked
+    * stw_framebuffer objects.  Assert that the counter is zero when
+    * trying to lock this mutex.
+    */
    CRITICAL_SECTION fb_mutex;
    struct stw_framebuffer *fb_head;
    
 #ifdef DEBUG
    unsigned long memdbg_no;
 #endif
+
+   /** WGL_EXT_swap_control */
+   int refresh_rate;
+   int swap_interval;
+
+   bool initialized;
 };