aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-04-19 13:57:17 -0700
committerEric Anholt <[email protected]>2013-04-30 10:40:45 -0700
commit0e8ef74c5f0799f3270654f1e569905a585aa1d4 (patch)
treeb6c6c779ad2ea61528fcdd62c18038106effa9af /src/mesa/main
parent3750ff9e5ff019352d6c2fd6bb5a3d4eaeb6541e (diff)
mesa: Add a clarifying comment about rowStride of compressed textures.
I always forget how we do this for compressed textures. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/dd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 76411b31e5a..1e5aca13a48 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -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,