mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
This replaces emit_vertex with:
if (vertex_count < max_vertices) {
emit_vertex_with_counter vertex_count ...
vertex_count += 1
}
Which is exactly what NIR->LLVM was doing but at NIR level. This
pass is already called by ACO.
pipeline-db changes on GFX10:
Totals from affected shaders:
SGPRS: 1952 -> 1912 (-2.05 %)
VGPRS: 2112 -> 2044 (-3.22 %)
Code Size: 189368 -> 185620 (-1.98 %) bytes
Max Waves: 494 -> 491 (-0.61 %)
No pipeline-db changes on other generations.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4182>
|
||
|---|---|---|
| .. | ||
| ac_llvm_build.c | ||
| ac_llvm_build.h | ||
| ac_llvm_cull.c | ||
| ac_llvm_cull.h | ||
| ac_llvm_helper.cpp | ||
| ac_llvm_util.c | ||
| ac_llvm_util.h | ||
| ac_nir_to_llvm.c | ||
| ac_nir_to_llvm.h | ||
| ac_shader_abi.h | ||
| meson.build | ||