From 3d6900d76efaef1ff6e84b7b8785bbe3d8f5b29b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 28 Jun 2018 02:05:12 -0400 Subject: [PATCH] glapi: define AMD_framebuffer_multisample_advanced and add its functions Reviewed-by: Brian Paul --- src/mapi/glapi/gen/gl_API.xml | 27 +++++++++++++++++++++++++++ src/mesa/main/fbobject.c | 22 ++++++++++++++++++++++ src/mesa/main/fbobject.h | 10 ++++++++++ 3 files changed, 59 insertions(+) diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 49807e1ea52..81e4ac08cce 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -13035,6 +13035,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index edafdd011aa..f63902c9dd4 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -2492,6 +2492,17 @@ _mesa_RenderbufferStorageMultisample(GLenum target, GLsizei samples, } +void GLAPIENTRY +_mesa_RenderbufferStorageMultisampleAdvancedAMD( + GLenum target, GLsizei samples, GLsizei storageSamples, + GLenum internalFormat, GLsizei width, GLsizei height) +{ + renderbuffer_storage_target(target, internalFormat, width, height, + samples, storageSamples, + "glRenderbufferStorageMultisampleAdvancedAMD"); +} + + /** * OpenGL ES version of glRenderBufferStorage. */ @@ -2536,6 +2547,17 @@ _mesa_NamedRenderbufferStorageMultisample(GLuint renderbuffer, GLsizei samples, } +void GLAPIENTRY +_mesa_NamedRenderbufferStorageMultisampleAdvancedAMD( + GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, + GLenum internalformat, GLsizei width, GLsizei height) +{ + renderbuffer_storage_named(renderbuffer, internalformat, width, height, + samples, storageSamples, + "glNamedRenderbufferStorageMultisampleAdvancedAMD"); +} + + static void get_render_buffer_parameteriv(struct gl_context *ctx, struct gl_renderbuffer *rb, GLenum pname, diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h index 0299781b1e5..5cd3c60297f 100644 --- a/src/mesa/main/fbobject.h +++ b/src/mesa/main/fbobject.h @@ -173,6 +173,11 @@ _mesa_RenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +extern void GLAPIENTRY +_mesa_RenderbufferStorageMultisampleAdvancedAMD( + GLenum target, GLsizei samples, GLsizei storageSamples, + GLenum internalFormat, GLsizei width, GLsizei height); + extern void GLAPIENTRY _es_RenderbufferStorageEXT(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height); @@ -186,6 +191,11 @@ _mesa_NamedRenderbufferStorageMultisample(GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +extern void GLAPIENTRY +_mesa_NamedRenderbufferStorageMultisampleAdvancedAMD( + GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, + GLenum internalformat, GLsizei width, GLsizei height); + extern void GLAPIENTRY _mesa_EGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image); -- 2.30.2