mesa: Remove unused framebuffer validation
authorAlyssa Rosenzweig <alyssa@collabora.com>
Sat, 5 Mar 2022 22:07:37 +0000 (17:07 -0500)
committerAlyssa Rosenzweig <alyssa@collabora.com>
Sat, 12 Mar 2022 03:02:23 +0000 (22:02 -0500)
Probably unused since we deleted classic.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15255>

src/mesa/main/fbobject.c
src/mesa/main/fbobject.h

index 7eab443..48df6d7 100644 (file)
@@ -692,45 +692,6 @@ _mesa_FramebufferRenderbuffer_sw(struct gl_context *ctx,
    simple_mtx_unlock(&fb->Mutex);
 }
 
-
-/**
- * Fallback for ctx->Driver.ValidateFramebuffer()
- * Check if the renderbuffer's formats are supported by the software
- * renderer.
- * Drivers should probably override this.
- */
-void
-_mesa_validate_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb)
-{
-   gl_buffer_index buf;
-   for (buf = 0; buf < BUFFER_COUNT; buf++) {
-      const struct gl_renderbuffer *rb = fb->Attachment[buf].Renderbuffer;
-      if (rb) {
-         switch (rb->_BaseFormat) {
-         case GL_ALPHA:
-         case GL_LUMINANCE_ALPHA:
-         case GL_LUMINANCE:
-         case GL_INTENSITY:
-         case GL_RED:
-         case GL_RG:
-            fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED;
-            return;
-
-         default:
-            switch (rb->Format) {
-            /* XXX This list is likely incomplete. */
-            case MESA_FORMAT_R9G9B9E5_FLOAT:
-               fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED;
-               return;
-            default:;
-               /* render buffer format is supported by software rendering */
-            }
-         }
-      }
-   }
-}
-
-
 /**
  * Return true if the framebuffer has a combined depth/stencil
  * renderbuffer attached.
index 2ca9a85..966ceca 100644 (file)
@@ -93,9 +93,6 @@ _mesa_renderbuffer_storage(struct gl_context *ctx, struct gl_renderbuffer *rb,
                            GLsizei height, GLsizei samples,
                            GLsizei storageSamples);
 
-extern void
-_mesa_validate_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb);
-
 extern GLboolean
 _mesa_has_depthstencil_combined(const struct gl_framebuffer *fb);