mesa: add EXT_dsa NamedRenderbufferStorageMultisampleEXT function
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 11 Sep 2019 08:13:21 +0000 (10:13 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 18 Oct 2019 08:26:26 +0000 (10:26 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mapi/glapi/gen/EXT_direct_state_access.xml
src/mapi/glapi/gen/static_data.py
src/mesa/main/fbobject.c
src/mesa/main/fbobject.h

index b2f27cf2ddef7261905135ecc34da119329ced7a..d926b25014da18516110ecfa334b04939aad1b2b 100644 (file)
       <param name="target" type="GLenum" />
    </function>
 
+   <function name="NamedRenderbufferStorageMultisampleEXT">
+      <param name="renderbuffer" type="GLuint" />
+      <param name="samples" type="GLsizei" />
+      <param name="internalformat" type="GLenum" />
+      <param name="width" type="GLsizei" />
+      <param name="height" type="GLsizei" />
+   </function>
+
    <!-- ARB_vertex_program -->
    <function name="NamedProgramStringEXT">
       <param name="program" type="GLuint" />
index 95d68a947cb9212c9247eda6b2b19fbeae8c5f10..344f476a676de263bcaebc27ba4e87c8ef916f66 100644 (file)
@@ -1595,6 +1595,7 @@ offsets = {
     "NamedProgramLocalParameters4fvEXT": 1559,
     "GenerateTextureMipmapEXT": 1560,
     "GenerateMultiTexMipmapEXT": 1561,
+    "NamedRenderbufferStorageMultisampleEXT": 1562,
 }
 
 functions = [
index 7ae7727c9c2670649606e2b888c9a5d286ffa372..2aeb48dfe7dece85d716f003b65dd20d3d61c4bd 100644 (file)
@@ -2734,6 +2734,25 @@ _mesa_NamedRenderbufferStorageMultisample(GLuint renderbuffer, GLsizei samples,
 }
 
 
+void GLAPIENTRY
+_mesa_NamedRenderbufferStorageMultisampleEXT(GLuint renderbuffer, GLsizei samples,
+                                             GLenum internalformat,
+                                             GLsizei width, GLsizei height)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   struct gl_renderbuffer *rb = _mesa_lookup_renderbuffer(ctx, renderbuffer);
+   if (!rb || rb == &DummyRenderbuffer) {
+      _mesa_HashLockMutex(ctx->Shared->RenderBuffers);
+      rb = allocate_renderbuffer_locked(ctx, renderbuffer,
+                                        "glNamedRenderbufferStorageMultisampleEXT");
+      _mesa_HashUnlockMutex(ctx->Shared->RenderBuffers);
+   }
+   renderbuffer_storage(ctx, rb, internalformat, width, height,
+                        samples, samples,
+                        "glNamedRenderbufferStorageMultisample");
+}
+
+
 void GLAPIENTRY
 _mesa_NamedRenderbufferStorageMultisampleAdvancedAMD(
       GLuint renderbuffer, GLsizei samples, GLsizei storageSamples,
index 56e53544dd79f4f2537075a0cb1f848acf6b14cc..bd1f7e4a537f0b8391bf2782f138d79a909605b0 100644 (file)
@@ -199,6 +199,11 @@ _mesa_NamedRenderbufferStorageMultisample(GLuint renderbuffer, GLsizei samples,
                                           GLenum internalformat,
                                           GLsizei width, GLsizei height);
 
+extern void GLAPIENTRY
+_mesa_NamedRenderbufferStorageMultisampleEXT(GLuint renderbuffer, GLsizei samples,
+                                             GLenum internalformat,
+                                             GLsizei width, GLsizei height);
+
 extern void GLAPIENTRY
 _mesa_NamedRenderbufferStorageMultisampleAdvancedAMD(
       GLuint renderbuffer, GLsizei samples, GLsizei storageSamples,