mesa/src/mesa
Marek Olšák 9ea8f67a1e mesa: add LodBias quantization from st/mesa
Apparently the quantization math isn't cheap.

This further reduces overhead by 2% for drawoverhead/8 textures.
The improvement is measured by looking at the sysprof percentage delta and
multiplying by 2 (because we have the frontend and gallium threads with
equal overhead, so the benefit is doubled compared to 1 thread).

Both per-sampler and per-unit lod bias values are quantized.

The difference in behavior is that both values are quantized separately
and then added up, instead of first added up and then quantized.
The worst case error is +- 1/256 in the reduced precision, i.e. off by one
in a fixed-point representation, which should be fine.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11339>
2021-06-27 10:28:39 -04:00
..
drivers mesa: translate into pipe_sampler_state in GL functions 2021-06-27 10:28:39 -04:00
main mesa: add LodBias quantization from st/mesa 2021-06-27 10:28:39 -04:00
math util: Move the 4x4 matrix inverse function to u_math 2021-06-18 22:16:27 +00:00
program mesa: fix _mesa_add_state_reference() declaration mismatch 2021-04-26 13:48:11 +00:00
sparc sparc: Avoid some redefinition warnings 2021-06-02 07:56:32 +00:00
state_tracker mesa: add LodBias quantization from st/mesa 2021-06-27 10:28:39 -04:00
swrast mesa: translate into pipe_sampler_state in GL functions 2021-06-27 10:28:39 -04:00
swrast_setup remove final imports.h and imports.c bits 2020-04-21 11:09:04 -07:00
tnl Convert most remaining free-form fall-through comments to FALLTHROUGH 2021-04-15 16:01:22 +00:00
tnl_dd
vbo vbo: delay vbo_exec_vtx_map call 2021-06-17 09:10:29 +02:00
x86 asm: Fix x86 assembly for inverse matrix operations 2020-12-03 11:39:47 -08:00
x86-64 mesa: add support for CET to x86/x86-64 asm files. 2019-08-16 09:00:35 +10:00
Android.gen.mk mesa: Replace _mesa_pack_ubyte_rgba_row() with pack_ubyte_rgba_8unorm(). 2021-04-21 19:59:10 +00:00
Android.libmesa_dricore.mk android: mesa: Revert "android: mesa: revert "Enable asm unconditionally"" 2019-11-12 18:09:43 +00:00
Android.libmesa_git_sha1.mk
Android.libmesa_glsl_utils.mk remove final imports.h and imports.c bits 2020-04-21 11:09:04 -07:00
Android.libmesa_sse41.mk
Android.libmesa_st_mesa.mk android: mesa: Revert "android: mesa: revert "Enable asm unconditionally"" 2019-11-12 18:09:43 +00:00
Android.mk mesa: Replace gen_matypes with a simple header for V4F/mat layout. 2019-07-01 11:12:15 -07:00
Makefile.sources mesa: Replace _mesa_pack_ubyte_rgba_row() with pack_ubyte_rgba_8unorm(). 2021-04-21 19:59:10 +00:00
meson.build mesa: Replace _mesa_pack_ubyte_rgba_row() with pack_ubyte_rgba_8unorm(). 2021-04-21 19:59:10 +00:00