diff options
author | Samuel Pitoiset <[email protected]> | 2020-03-13 11:23:07 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2020-04-08 08:24:05 +0200 |
commit | 9f005f1f850710ea456f9847b1d247aaa8f0d6d2 (patch) | |
tree | d5969d17822744f93d9a120e66a9a096277ad73f /src/amd/vulkan/radv_shader.c | |
parent | cd99ea7318863aa61f8a4516cd153611de85989e (diff) |
radv: enable lowering of GS intrinsics for the LLVM backend
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4182>
Diffstat (limited to 'src/amd/vulkan/radv_shader.c')
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 537ab9f8b7f..bb88b368d05 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -453,8 +453,7 @@ radv_shader_compile_to_nir(struct radv_device *device, nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir)); - if (nir->info.stage == MESA_SHADER_GEOMETRY && - device->physical_device->use_aco) + if (nir->info.stage == MESA_SHADER_GEOMETRY) nir_lower_gs_intrinsics(nir, true); static const nir_lower_tex_options tex_options = { |