From 8fe554c2bff2f3e59c92ce58368e1fe33e593af3 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 6 Jun 2024 15:57:22 +0200 Subject: [PATCH] mesa/main: remove unused function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Whoops, seems I left this function unused! Fixes: dd8fb7139df ("mesa/main: rewrite mipmap generation code") Reviewed-by: Timothy Arceri Reviewed-by: Marek Olšák Part-of: --- src/mesa/main/mipmap.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c index 50c4ed3c9f7..7b515f33e9c 100644 --- a/src/mesa/main/mipmap.c +++ b/src/mesa/main/mipmap.c @@ -69,24 +69,6 @@ _mesa_compute_num_levels(struct gl_context *ctx, return numLevels; } -static GLint -bytes_per_pixel(GLenum datatype, GLuint comps) -{ - GLint b; - - if (datatype == GL_UNSIGNED_INT_8_24_REV_MESA || - datatype == GL_UNSIGNED_INT_24_8_MESA) - return 4; - - b = _mesa_sizeof_packed_type(datatype); - assert(b >= 0); - - if (_mesa_type_is_packed(datatype)) - return b; - else - return b * comps; -} - #define MAX_SPAN_WIDTH 64 static void