Mesa (master): util: Share a single function pointer for the 4-byte rgba unpack function.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 7 18:47:18 UTC 2020
Module: Mesa
Branch: master
Commit: b7418270c34b0476345488ea9a9c7185a7327e15
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b7418270c34b0476345488ea9a9c7185a7327e15
Author: Eric Anholt <eric at anholt.net>
Date: Wed Jul 1 13:33:21 2020 -0700
util: Share a single function pointer for the 4-byte rgba unpack function.
Everyone wants the same behavior, and this helps shrink the size of our
format description tables.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5728>
---
src/gallium/drivers/nouveau/nv30/nv30_vbo.c | 2 +-
src/util/format/u_format.c | 27 +++++++---------
src/util/format/u_format.h | 48 +++++------------------------
src/util/format/u_format_bptc.c | 8 ++---
src/util/format/u_format_bptc.h | 8 ++---
src/util/format/u_format_etc.c | 4 +--
src/util/format/u_format_etc.h | 2 +-
src/util/format/u_format_latc.c | 16 +++++-----
src/util/format/u_format_latc.h | 8 ++---
src/util/format/u_format_other.c | 14 ++++-----
src/util/format/u_format_other.h | 8 ++---
src/util/format/u_format_pack.py | 9 ++++--
src/util/format/u_format_rgtc.c | 16 +++++-----
src/util/format/u_format_rgtc.h | 8 ++---
src/util/format/u_format_s3tc.c | 16 +++++-----
src/util/format/u_format_s3tc.h | 16 +++++-----
src/util/format/u_format_table.py | 6 ++--
src/util/format/u_format_yuv.c | 24 +++++++--------
src/util/format/u_format_yuv.h | 8 ++---
src/util/tests/format/u_format_test.c | 15 +++++----
20 files changed, 116 insertions(+), 147 deletions(-)
Diff: http://cgit.freedesktop.org/mesa/mesa/diff/?id=b7418270c34b0476345488ea9a9c7185a7327e15
More information about the mesa-commit
mailing list