mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 10:08:08 +02:00
mesa: Remove unused _mesa_apply_ci_transfer_ops
Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14098>
This commit is contained in:
parent
1455d1cd30
commit
74c29e1bf7
2 changed files with 0 additions and 29 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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[]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue