Mesa (main): mesa: Remove unused _mesa_apply_ci_transfer_ops
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Dec 7 19:02:50 UTC 2021
Module: Mesa
Branch: main
Commit: 74c29e1bf72ab39ed097ea3ab61048457f3e1369
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=74c29e1bf72ab39ed097ea3ab61048457f3e1369
Author: Adam Jackson <ajax at redhat.com>
Date: Thu May 20 17:01:39 2021 -0400
mesa: Remove unused _mesa_apply_ci_transfer_ops
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/pixeltransfer.c | 23 -----------------------
src/mesa/main/pixeltransfer.h | 6 ------
2 files changed, 29 deletions(-)
diff --git a/src/mesa/main/pixeltransfer.c b/src/mesa/main/pixeltransfer.c
index b4dff56bdaa..0bd39b1513d 100644
--- a/src/mesa/main/pixeltransfer.c
+++ b/src/mesa/main/pixeltransfer.c
@@ -220,29 +220,6 @@ _mesa_shift_and_offset_ci(const struct gl_context *ctx,
-/**
- * Apply color index shift, offset and table lookup to an array
- * of color indexes;
- */
-void
-_mesa_apply_ci_transfer_ops(const struct gl_context *ctx,
- GLbitfield transferOps,
- GLuint n, GLuint indexes[])
-{
- if (transferOps & IMAGE_SHIFT_OFFSET_BIT) {
- _mesa_shift_and_offset_ci(ctx, n, indexes);
- }
- if (transferOps & IMAGE_MAP_COLOR_BIT) {
- const GLuint mask = ctx->PixelMaps.ItoI.Size - 1;
- GLuint i;
- for (i = 0; i < n; i++) {
- const GLuint j = indexes[i] & mask;
- indexes[i] = _mesa_lroundevenf(ctx->PixelMaps.ItoI.Map[j]);
- }
- }
-}
-
-
/**
* Apply stencil index shift, offset and table lookup to an array
* of stencil values.
diff --git a/src/mesa/main/pixeltransfer.h b/src/mesa/main/pixeltransfer.h
index caa2911fcf1..a12d0d8e2a3 100644
--- a/src/mesa/main/pixeltransfer.h
+++ b/src/mesa/main/pixeltransfer.h
@@ -64,12 +64,6 @@ extern void
_mesa_shift_and_offset_ci(const struct gl_context *ctx,
GLuint n, GLuint indexes[]);
-extern void
-_mesa_apply_ci_transfer_ops(const struct gl_context *ctx,
- GLbitfield transferOps,
- GLuint n, GLuint indexes[]);
-
-
extern void
_mesa_apply_stencil_transfer_ops(const struct gl_context *ctx, GLuint n,
GLubyte stencil[]);
More information about the mesa-commit
mailing list