From: Erik Faye-Lund
Date: Thu, 16 Jan 2020 18:57:13 +0000 (+0100)
Subject: docs: use figure/figcaption instead of tables
X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37daddd3e4c107b4733fc6f1bccefbcd2d861852;p=mesa.git
docs: use figure/figcaption instead of tables
Reviewed-by: Eric Engestrom
Part-of:
---
diff --git a/docs/dispatch.html b/docs/dispatch.html
index 1e6377ad818..89f500d9a2c 100644
--- a/docs/dispatch.html
+++ b/docs/dispatch.html
@@ -77,17 +77,17 @@ table.
This can be implemented in just a few lines of C code. The file
src/mesa/glapi/glapitemp.h contains code very similar to this.
-
-
-
+
-
Sample dispatch function
-
+}
+
+Sample dispatch function
+
The problem with this simple implementation is the large amount of
overhead that it adds to every GL function call.
@@ -129,15 +129,14 @@ The resulting implementation of GET_DISPATCH is slightly more
complex, but it avoids the expensive pthread_getspecific call in
the common case.
-
-
-
+
-
Improved GET_DISPATCH Implementation
-
+
+Improved GET_DISPATCH Implementation
+
3.2. ELF TLS
@@ -154,16 +153,15 @@ direct rendering drivers that use either interface. Once the pointer is
properly declared, GET_DISPACH becomes a simple variable
reference.
-
-
-
+
-
TLS GET_DISPATCH Implementation
-
+
+TLS GET_DISPATCH Implementation
+
Use of this path is controlled by the preprocessor define
USE_ELF_TLS. Any platform capable of using ELF TLS should use this
@@ -215,13 +213,12 @@ of the assembly source file different implementations of the macro are
selected based on the defined preprocessor variables. The assembly code
then consists of a series of invocations of the macros such as:
-
-
-
+
-
SPARC Assembly Implementation of glColor3fv
-
+
+SPARC Assembly Implementation of glColor3fv
+
The benefit of this technique is that changes to the calling pattern
(i.e., addition of a new dispatch table pointer access method) require fewer
diff --git a/docs/mesa.css b/docs/mesa.css
index f7f37b2715a..bf3cec5728a 100644
--- a/docs/mesa.css
+++ b/docs/mesa.css
@@ -34,6 +34,20 @@ iframe {
float: left;
}
+figure {
+ margin: 0.5em;
+ padding: 0.5em;
+ border: 1px solid #ccc;
+}
+
+figure pre {
+ margin: 0;
+}
+
+figure figcaption {
+ padding-top: 0.5em;
+}
+
.content {
position: absolute;
left: 20em;