mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 19:58:19 +02:00
This improves blend shader performance slightly over loading the constants from the sysval UBO. On bifrost, we have 128 FAU words, so reserving 4 words for blend constants is not a significant cost. On midgard, register mapped uniforms share space with working registers. With high working register pressure, we only allocate 32 uniform registers, and so would lose 1/8 of available space to blend constants if we implemented the same optimization. This improves gfxbench gl_driver FPS on G610 from 40.48 to 42.39. I did not measure any regressions on benchmarks I tested that did not use blend shaders. Signed-off-by: Olivia Lee <olivia.lee@collabora.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Acked-by: Ryan Mckeever <ryan.mckeever@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34666> |
||
|---|---|---|
| .. | ||
| ci | ||
| clc | ||
| compiler | ||
| drm-shim | ||
| ds | ||
| lib | ||
| libpan | ||
| midgard | ||
| perf | ||
| shared | ||
| tools | ||
| util | ||
| vulkan | ||
| .clang-format | ||
| meson.build | ||