mesa: Add a clarifying comment about rowStride of compressed textures.
authorEric Anholt <eric@anholt.net>
Fri, 19 Apr 2013 20:57:17 +0000 (13:57 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 30 Apr 2013 17:40:45 +0000 (10:40 -0700)
I always forget how we do this for compressed textures.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/dd.h

index 76411b31e5a5138472b7adf9cd9e741441f2302a..1e5aca13a48fc66857df9b2dbe556a4e093aad50 100644 (file)
@@ -355,7 +355,9 @@ struct dd_function_table {
     * \param mode  bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and
     *              GL_MAP_INVALIDATE_RANGE_BIT (if writing)
     * \param mapOut  returns start of mapping of region of interest
-    * \param rowStrideOut  returns row stride (in bytes)
+    * \param rowStrideOut returns row stride (in bytes).  In the case of a
+    * compressed texture, this is the byte stride between one row of blocks
+    * and another.
     */
    void (*MapTextureImage)(struct gl_context *ctx,
                           struct gl_texture_image *texImage,