[Mesa-dev] [PATCH 3/3] docs/devinfo: Expound on helpful extension tips

Nanley Chery nanleychery at gmail.com
Fri Jun 3 18:04:35 UTC 2016


From: Nanley Chery <nanley.g.chery at intel.com>

Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
---
 docs/devinfo.html | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/docs/devinfo.html b/docs/devinfo.html
index f5d23ab..489d263 100644
--- a/docs/devinfo.html
+++ b/docs/devinfo.html
@@ -684,6 +684,8 @@ To add a new GL extension to Mesa you have to do at least the following.
 </li>
 <li>
    Add a new entry to the <code>gl_extensions</code> struct in mtypes.h
+   if the extension requires driver capabilities not already exposed by
+   another extension.
 </li>
 <li>
    Add a new entry to the src/mesa/main/extensions_table.h file.
@@ -698,6 +700,11 @@ To add a new GL extension to Mesa you have to do at least the following.
    and attrib.c will most likely require new code.
 </li>
 <li>
+   To determine if the new extension is active in the current context,
+   use the auto-generated _mesa_has_##name_str() function defined in
+   src/mesa/main/extensions.h.
+</li>
+<li>
    The dispatch tests check_table.cpp and dispatch_sanity.cpp
    should be updated with details about the new extensions functions. These
    tests are run using 'make check'
-- 
2.8.3



More information about the mesa-dev mailing list