From: Nanley Chery Date: Fri, 3 Jun 2016 17:59:18 +0000 (-0700) Subject: docs/devinfo: Expound on helpful extension tips X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b7a0c0ec7f5626bbec4904e6754f27087120ec54;p=mesa.git docs/devinfo: Expound on helpful extension tips Signed-off-by: Nanley Chery Reviewed-by: Ian Romanick --- diff --git a/docs/devinfo.html b/docs/devinfo.html index f5d23ab6391..489d263f295 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.
  • Add a new entry to the gl_extensions struct in mtypes.h + if the extension requires driver capabilities not already exposed by + another extension.
  • Add a new entry to the src/mesa/main/extensions_table.h file. @@ -697,6 +699,11 @@ To add a new GL extension to Mesa you have to do at least the following. If the new extension adds new GL state, the functions in get.c, enable.c and attrib.c will most likely require new code.
  • +
  • + 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. +
  • The dispatch tests check_table.cpp and dispatch_sanity.cpp should be updated with details about the new extensions functions. These