Mesa (main): mesa: Remove unused _mesa_compressed_image_address
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Dec 7 19:02:50 UTC 2021
Module: Mesa
Branch: main
Commit: 5d09812c2f25428487ecd3f0326364b697654cc7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5d09812c2f25428487ecd3f0326364b697654cc7
Author: Adam Jackson <ajax at redhat.com>
Date: Thu May 20 17:03:44 2021 -0400
mesa: Remove unused _mesa_compressed_image_address
Reviewed-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14098>
---
src/mesa/main/texcompress.c | 32 --------------------------------
1 file changed, 32 deletions(-)
diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/texcompress.c
index 992818cc001..59b37582b26 100644
--- a/src/mesa/main/texcompress.c
+++ b/src/mesa/main/texcompress.c
@@ -871,38 +871,6 @@ _mesa_compressed_format_to_glenum(struct gl_context *ctx,
}
-/*
- * Return the address of the pixel at (col, row, img) in a
- * compressed texture image.
- * \param col, row, img - image position (3D), should be a multiple of the
- * format's block size.
- * \param format - compressed image format
- * \param width - image width (stride) in pixels
- * \param image - the image address
- * \return address of pixel at (row, col, img)
- */
-GLubyte *
-_mesa_compressed_image_address(GLint col, GLint row, GLint img,
- mesa_format mesaFormat,
- GLsizei width, const GLubyte *image)
-{
- /* XXX only 2D images implemented, not 3D */
- const GLuint blockSize = _mesa_get_format_bytes(mesaFormat);
- GLuint bw, bh;
- GLint offset;
-
- _mesa_get_format_block_size(mesaFormat, &bw, &bh);
-
- assert(col % bw == 0);
- assert(row % bh == 0);
-
- offset = ((width + bw - 1) / bw) * (row / bh) + col / bw;
- offset *= blockSize;
-
- return (GLubyte *) image + offset;
-}
-
-
/**
* Return a texel-fetch function for the given format, or NULL if
* invalid format.
More information about the mesa-commit
mailing list