summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2014-03-31 17:26:33 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2014-04-01 10:17:13 -0400
commit2f14e5eb098a8c055f3f6acc4080eaf66da939a2 (patch)
tree2ae310f8cfd6a6a47c4db45f8eddcaad5451f025 /src/gallium
parent4ca110a7b9bb37cb2704cbbd7df923cfec37e12c (diff)
downloadexternal_mesa3d-2f14e5eb098a8c055f3f6acc4080eaf66da939a2.zip
external_mesa3d-2f14e5eb098a8c055f3f6acc4080eaf66da939a2.tar.gz
external_mesa3d-2f14e5eb098a8c055f3f6acc4080eaf66da939a2.tar.bz2
gallium/docs: add format to index
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/docs/source/format.rst4
-rw-r--r--src/gallium/docs/source/index.rst1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/docs/source/format.rst b/src/gallium/docs/source/format.rst
index f6d77d6..93faf4f 100644
--- a/src/gallium/docs/source/format.rst
+++ b/src/gallium/docs/source/format.rst
@@ -6,12 +6,12 @@ Gallium format names mostly follow D3D10 conventions, with some extensions.
Format names like XnYnZnWn have the X component in the lowest-address n bits
and the W component in the highest-address n bits; for B8G8R8A8, byte 0 is
blue and byte 3 is alpha. Note that platform endianness is not considered
-in this definition. In C:
+in this definition. In C::
struct x8y8z8w8 { uint8_t x, y, z, w; };
Format aliases like XYZWstrq are (s+t+r+q)-bit integers in host endianness,
-with the X component in the s least-significant bits of the integer. In C:
+with the X component in the s least-significant bits of the integer. In C::
uint32_t xyzw8888 = (x << 0) | (y << 8) | (z << 16) | (w << 24);
diff --git a/src/gallium/docs/source/index.rst b/src/gallium/docs/source/index.rst
index 2a73e3a..c6cf3704 100644
--- a/src/gallium/docs/source/index.rst
+++ b/src/gallium/docs/source/index.rst
@@ -16,6 +16,7 @@ Contents:
tgsi
screen
resources
+ format
context
cso
distro