mesa: add KHR_no_error support for NamedFramebufferTextureLayer
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 8 May 2017 01:37:33 +0000 (11:37 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 17 May 2017 00:12:03 +0000 (10:12 +1000)
v3: use frame_buffer_texture_layer() helper

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mapi/glapi/gen/ARB_direct_state_access.xml
src/mesa/main/fbobject.c
src/mesa/main/fbobject.h

index 3cb486edab04ce9247c029accd5793faa872c9d1..2f3d60fecf7bf3275986b1e3872e86700a7a50ef 100644 (file)
       <param name="level" type="GLint" />
    </function>
 
-   <function name="NamedFramebufferTextureLayer">
+   <function name="NamedFramebufferTextureLayer" no_error="true">
       <param name="framebuffer" type="GLuint" />
       <param name="attachment" type="GLenum" />
       <param name="texture" type="GLuint" />
index 7af0df36775b0aa30da3df1cbce92c5009bb38c9..8e25dfacbef0f856462e83c6124e12050ac9abfd 100644 (file)
@@ -3516,6 +3516,18 @@ _mesa_FramebufferTextureLayer(GLenum target, GLenum attachment,
 }
 
 
+void GLAPIENTRY
+_mesa_NamedFramebufferTextureLayer_no_error(GLuint framebuffer,
+                                            GLenum attachment,
+                                            GLuint texture, GLint level,
+                                            GLint layer)
+{
+   frame_buffer_texture_layer(framebuffer, 0, attachment, texture, level,
+                              layer, "glNamedFramebufferTextureLayer", true,
+                              true);
+}
+
+
 void GLAPIENTRY
 _mesa_NamedFramebufferTextureLayer(GLuint framebuffer, GLenum attachment,
                                    GLuint texture, GLint level, GLint layer)
index 7c32b87d74f4533f49091c8f0e8ed249dcd626ac..a2f9264f8ea1d5fc79a0171a0752b5a325e9dd7d 100644 (file)
@@ -249,6 +249,11 @@ _mesa_FramebufferTextureLayer(GLenum target, GLenum attachment,
                                  GLuint texture, GLint level, GLint layer);
 
 extern void GLAPIENTRY
+_mesa_NamedFramebufferTextureLayer_no_error(GLuint framebuffer,
+                                            GLenum attachment,
+                                            GLuint texture, GLint level,
+                                            GLint layer);
+extern void GLAPIENTRY
 _mesa_NamedFramebufferTextureLayer(GLuint framebuffer, GLenum attachment,
                                    GLuint texture, GLint level, GLint layer);