Mesa (master): gallivm: use llvm jit code for decoding s3tc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Dec 20 05:03:34 UTC 2018
Module: Mesa
Branch: master
Commit: 6f4083143bb8c478ccfcaef034d183d89b471993
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6f4083143bb8c478ccfcaef034d183d89b471993
Author: Roland Scheidegger <sroland at vmware.com>
Date: Wed Dec 19 04:37:36 2018 +0100
gallivm: use llvm jit code for decoding s3tc
This is (much) faster than using the util fallback.
(Note that there's two methods here, one would use a cache, similar to
the existing code (although the cache was disabled), except the block
decode is done with jit code, the other directly decodes the required
pixels. For now don't use the cache (being direct-mapped is suboptimal,
but it's difficult to come up with something better which doesn't have
too much overhead.)
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
src/gallium/auxiliary/Makefile.sources | 2 +-
src/gallium/auxiliary/gallivm/lp_bld_format.h | 6 +-
src/gallium/auxiliary/gallivm/lp_bld_format_aos.c | 5 +-
.../auxiliary/gallivm/lp_bld_format_cached.c | 374 ----
src/gallium/auxiliary/gallivm/lp_bld_format_s3tc.c | 2229 ++++++++++++++++++++
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c | 4 -
src/gallium/auxiliary/meson.build | 2 +-
7 files changed, 2239 insertions(+), 383 deletions(-)
Diff: http://cgit.freedesktop.org/mesa/mesa/diff/?id=6f4083143bb8c478ccfcaef034d183d89b471993
More information about the mesa-commit
mailing list