Changed escaping of double quotes.
[mesa.git] / src / mesa / drivers / dri / common / texmem.h
index 9afbb0c865bc79f0b7500d5e3b371fdca7beba91..705cd4d3445f89d9262635fe1556cfdacb0dd9db 100644 (file)
@@ -89,16 +89,17 @@ struct dri_texture_object {
                                         * the framebuffer.  
                                         */
 
-        unsigned    firstLevel;         /**< Image in \c tObj->Image that
+        unsigned    firstLevel;         /**< Image in \c tObj->Image[0] that
                                         * corresponds to the base-level of
                                         * this texture object.
                                         */
 
-        unsigned    lastLevel;          /**< Last image in \c tObj->Image used
-                                        * by the current LOD settings of this
-                                        * texture object.  This value must be
-                                        * greater than or equal to
-                                        * \c firstLevel.
+        unsigned    lastLevel;          /**< Last image in \c tObj->Image[0] 
+                                        * used by the
+                                        * current LOD settings of
+                                        * this texture object.  This
+                                        * value must be greater than
+                                        * or equal to \c firstLevel.
                                         */
 };
 
@@ -215,6 +216,23 @@ struct dri_tex_heap {
         * framebuffer.  
         */
         unsigned timestamp;
+
+       /** \brief Kick/upload weight
+        *
+        * When not enough free space is available this weight
+        * influences the choice of the heap from which textures are
+        * kicked. By default the weight is equal to the heap size.
+        */
+       double weight;
+
+       /** \brief Kick/upload duty
+        *
+        * The heap with the highest duty will be chosen for kicking
+        * textures if not enough free space is available. The duty is
+        * reduced by the amount of data kicked. Rebalancing of
+        * negative duties takes the weights into account.
+        */
+       int duty;
 };
 
 
@@ -292,4 +310,18 @@ GLboolean driValidateTextureHeaps( driTexHeap * const * texture_heaps,
 
 extern void driCalculateTextureFirstLastLevel( driTextureObject * t );
 
+
+extern const struct gl_texture_format *_dri_texformat_rgba8888;
+extern const struct gl_texture_format *_dri_texformat_argb8888;
+extern const struct gl_texture_format *_dri_texformat_rgb565;
+extern const struct gl_texture_format *_dri_texformat_argb4444;
+extern const struct gl_texture_format *_dri_texformat_argb1555;
+extern const struct gl_texture_format *_dri_texformat_al88;
+extern const struct gl_texture_format *_dri_texformat_a8;
+extern const struct gl_texture_format *_dri_texformat_ci8;
+extern const struct gl_texture_format *_dri_texformat_i8;
+extern const struct gl_texture_format *_dri_texformat_l8;
+
+extern void driInitTextureFormats( void );
+
 #endif /* DRI_TEXMEM_H */