Merge tag 'v5.3-rc3' into drm-next-5.4
[sfrench/cifs-2.6.git] / include / drm / ttm / ttm_bo_driver.h
index c9b8ba492f2479549938b47622bad1144fdc1221..d69121c43e58127d8d63d2174e5f0e28a3b2c32e 100644 (file)
@@ -390,6 +390,16 @@ struct ttm_bo_driver {
         * notify driver that a BO was deleted from LRU.
         */
        void (*del_from_lru_notify)(struct ttm_buffer_object *bo);
+
+       /**
+        * Notify the driver that we're about to release a BO
+        *
+        * @bo: BO that is about to be released
+        *
+        * Gives the driver a chance to do any cleanup, including
+        * adding fences that may force a delayed delete
+        */
+       void (*release_notify)(struct ttm_buffer_object *bo);
 };
 
 /**