summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2018-04-27 11:35:00 -0600
committerBrian Paul <[email protected]>2018-04-30 21:13:53 -0600
commit4580617509d1ba48a7806227533a07e1c495ca81 (patch)
tree99d00ab799e56500ba754fa02bb50464731945ce /src/mapi
parent31ab0427a767c6c8377c00203e87bf0a03ac3247 (diff)
mesa: add support for nvidia conservative rasterization extensions
Although the specs are written against compatibility GL 4.3 and allows core profile and GLES2+, it is exposed for GL 1.0+ and GLES1 and GLES2+. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/gl_API.xml47
-rw-r--r--src/mapi/glapi/gen/gl_genexec.py1
2 files changed, 48 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 38c19210478..db312370b1d 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -12871,6 +12871,53 @@
<enum name="CONSERVATIVE_RASTERIZATION_INTEL" value="0x83FE"/>
</category>
+<category name="GL_NV_conservative_raster" number="465">
+ <enum name="CONSERVATIVE_RASTERIZATION_NV" value="0x9346">
+ <size name="Get" mode="get"/>
+ </enum>
+ <enum name="SUBPIXEL_PRECISION_BIAS_X_BITS_NV" value="0x9347">
+ <size name="Get" mode="get"/>
+ </enum>
+ <enum name="SUBPIXEL_PRECISION_BIAS_Y_BITS_NV" value="0x9348">
+ <size name="Get" mode="get"/>
+ </enum>
+ <enum name="MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV" value="0x9349">
+ <size name="Get" mode="get"/>
+ </enum>
+ <function name="SubpixelPrecisionBiasNV" es1="1.0" es2="2.0" no_error="true">
+ <param name="xbits" type="GLuint"/>
+ <param name="ybits" type="GLuint"/>
+ </function>
+</category>
+
+<category name="GL_NV_conservative_raster_dilate" number="480">
+ <enum name="CONSERVATIVE_RASTER_DILATE_NV" value="0x9379">
+ <size name="Get" mode="get"/>
+ </enum>
+ <enum name="CONSERVATIVE_RASTER_DILATE_RANGE_NV" value="0x937A">
+ <size name="Get" mode="get"/>
+ </enum>
+ <enum name="CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV" value="0x937B">
+ <size name="Get" mode="get"/>
+ </enum>
+ <function name="ConservativeRasterParameterfNV" es1="1.0" es2="2.0" no_error="true">
+ <param name="pname" type="GLenum"/>
+ <param name="param" type="GLfloat"/>
+ </function>
+</category>
+
+<category name="GL_NV_conservative_pre_snap_triangles" number="487">
+ <enum name="CONSERVATIVE_RASTER_MODE_NV" value="0x954D">
+ <size name="Get" mode="get"/>
+ </enum>
+ <enum name="CONSERVATIVE_RASTER_MODE_POST_SNAP_NV" value="0x954E"/>
+ <enum name="CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV" value="0x954F"/>
+ <function name="ConservativeRasterParameteriNV" es1="1.0" es2="2.0" no_error="true">
+ <param name="pname" type="GLenum"/>
+ <param name="param" type="GLint"/>
+ </function>
+</category>
+
<xi:include href="INTEL_performance_query.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<category name="GL_EXT_polygon_offset_clamp" number="460">
diff --git a/src/mapi/glapi/gen/gl_genexec.py b/src/mapi/glapi/gen/gl_genexec.py
index aaff9f230b3..be8013b62b2 100644
--- a/src/mapi/glapi/gen/gl_genexec.py
+++ b/src/mapi/glapi/gen/gl_genexec.py
@@ -62,6 +62,7 @@ header = """/**
#include "main/colortab.h"
#include "main/compute.h"
#include "main/condrender.h"
+#include "main/conservativeraster.h"
#include "main/context.h"
#include "main/convolve.h"
#include "main/copyimage.h"