svga: Keep tight control of texture handle ownership.
[mesa.git] / src / gallium / drivers / svga / svga_screen_texture.h
index 1cc4063e6536d31c98d1ab2a1a13cde58da4e492..8cfdfea6937da2ce0db2d7d1c9aa5cf205fe471b 100644 (file)
@@ -61,7 +61,7 @@ struct svga_sampler_view
 {
    struct pipe_reference reference;
 
-   struct svga_texture *texture;
+   struct pipe_texture *texture;
 
    int min_lod;
    int max_lod;
@@ -94,6 +94,13 @@ struct svga_texture
     * operation.
     */
    struct svga_host_surface_cache_key key;
+
+   /**
+    * Handle for the host side surface.
+    *
+    * This handle is owned by this texture. Views should hold on to a reference
+    * to this texture and never destroy this handle directly.
+    */
    struct svga_winsys_surface *handle;
 };