Mesa (main): docs/gallium: Document the index buffer format convention

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 2 00:00:29 UTC 2021


Module: Mesa
Branch: main
Commit: d058ce7e8802b824bdd6a3f2c9ed2bf3b1af38bb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d058ce7e8802b824bdd6a3f2c9ed2bf3b1af38bb

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Tue May 25 17:59:46 2021 -0400

docs/gallium: Document the index buffer format convention

Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Reviewed-by: Emma Anholt <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10990>

---

 docs/gallium/format.rst | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/docs/gallium/format.rst b/docs/gallium/format.rst
index 93faf4fe1b3..e4b08b6f40e 100644
--- a/docs/gallium/format.rst
+++ b/docs/gallium/format.rst
@@ -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
 ----------
 



More information about the mesa-commit mailing list