X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fdevinfo.html;h=e1f290a6fa1b0e5354b77d6e0fc87f3ff2e506d9;hb=e9add0c501c3765cae43ef60ec58404c2340991b;hp=c6e97c68a62e5126ef9b11d14190eeee6b573bf3;hpb=2edc29ab1e568ed93b038e049eff95529d17fb53;p=mesa.git diff --git a/docs/devinfo.html b/docs/devinfo.html index c6e97c68a62..e1f290a6fa1 100644 --- a/docs/devinfo.html +++ b/docs/devinfo.html @@ -8,7 +8,7 @@
To add a new GL extension to Mesa you have to do at least the following. +
glext.h
doesn't define the extension, edit
+ include/GL/gl.h
and add code like this:
#ifndef GL_EXT_the_extension_name #define GL_EXT_the_extension_name 1 @@ -40,18 +41,18 @@ To add a new GL extension to Mesa you have to do at least the following.
src/mapi/glapi/gen/
directory, add the new extension
+ functions and enums to the gl_API.xml
file.
Then, a bunch of source files must be regenerated by executing the
corresponding Python scripts.
gl_extensions
struct in mtypes.h
- if the extension requires driver capabilities not already exposed by
- another extension.
+ Add a new entry to the gl_extensions
struct in
+ mtypes.h
if the extension requires driver capabilities not
+ already exposed by another extension.
src/mesa/main/extensions_table.h
file.
get.c
, enable.c
and attrib.c
+ will most likely require new code.
_mesa_has_##name_str()
function
+ defined in src/mesa/main/extensions.h
.
check_table.cpp
and
+ dispatch_sanity.cpp
should be updated with details about
+ the new extensions functions. These tests are run using
+ meson test
.