docs/gallium: Document the index buffer format convention
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 25 May 2021 21:59:46 +0000 (17:59 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Jun 2021 23:40:47 +0000 (23:40 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10990>

docs/gallium/format.rst

index 93faf4f..e4b08b6 100644 (file)
@@ -51,6 +51,11 @@ Format names with an embedded underscore are subsampled.  ``R8G8_B8G8`` is a
 single 32-bit block of two pixels, where the R and B values are repeated in
 both pixels.
 
+Index buffers do not have a natural format in Gallium structures. For purposes
+of ``is_format_supported`` queries, the formats ``R8_UINT``, ``R16_UINT``, and
+``R32_UINT`` are used with ``PIPE_BIND_INDEX_BUFFER`` for 8-bit, 16-bit, and
+32-bit index buffers respectively.
+
 References
 ----------