mesa/src
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
..
amd amd/ci: Use MESA_VK_IGNORE_CONFORMANCE_WARNING to reduce warnings 2021-06-25 19:45:38 +00:00
android_stub egl/android: refactor to use the legit vndk/window.h header 2021-06-09 21:07:54 +00:00
asahi asahi: Fix macOS macro. 2021-06-24 13:49:40 +00:00
broadcom v3dv/build: meson infrastructure for multi-hw-version support 2021-06-22 11:34:06 +02:00
compiler spirv: Support SPV_KHR_subgroup_uniform_control_flow 2021-06-25 22:41:32 +00:00
drm-shim drm-shim: fix compile with glibc >= 2.33 2021-04-20 05:49:29 +00:00
egl egl: fix in expected type 2021-06-19 19:34:20 +00:00
etnaviv etnaviv: tell the truth if alpha-test is supported 2021-04-08 19:25:26 +00:00
freedreno turnip: Add CrOS Gralloc support 2021-06-26 18:44:12 +00:00
gallium cso: don't look up a sampler CSO if the last one is identical 2021-06-27 12:49:12 +00:00
gbm gbm: list to stderr all the missing extension 2021-05-24 16:17:47 +00:00
getopt scons: Remove. 2021-03-20 10:38:55 +00:00
glx glx: create DRI screen for display GPU incase of prime 2021-06-03 09:12:32 +00:00
gtest
hgl hgl: Major refactor and cleanup 2021-01-09 20:51:35 -06:00
imgui
intel anv: allocate bigger batches as we grow command buffers 2021-06-26 12:23:54 +03:00
loader loader/dri3: Don't churn through xfixes regions in SwapBuffers 2021-06-24 03:18:06 +00:00
mapi glthread: change when glFlush flushes asynchronously 2021-06-17 02:24:22 +00:00
mesa mesa: add LodBias quantization from st/mesa 2021-06-27 10:28:39 -04:00
microsoft microsoft/spirv_to_dxil: Add drive_location assignment 2021-06-24 20:05:13 +00:00
nouveau nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
panfrost pan/mdg: Add 16 bytes of padding to the end of shaders 2021-06-23 14:42:55 +00:00
tool pps: Intel pps driver 2021-05-18 14:28:48 +00:00
util mesa: add LodBias quantization from st/mesa 2021-06-27 10:28:39 -04:00
virtio venus: remove workarounds for multi-planar format interop 2021-06-16 20:31:32 +00:00
vulkan ci: Unify on MESA_VK_IGNORE_CONFORMANCE_WARNING 2021-06-25 19:45:38 +00:00
meson.build panfrost: Add a Vulkan driver for Midgard/Bifrost GPUs 2021-06-22 14:07:34 +00:00