diff options
author | Samuel Pitoiset <[email protected]> | 2018-05-14 16:04:34 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-05-14 21:38:19 +0200 |
commit | ea43d935ab765575994557d1f923b570d4bd9085 (patch) | |
tree | 22478d7b3809971742af4ad5c7cc28cafb1be49a /src | |
parent | 7cbc6f2621f6d91b7bb201b9539ebff0f903828a (diff) |
radv: run the shader info pass before emitting the GS copy shader
For further optimizations.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_nir_to_llvm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 47c52dc437b..2162ca58e08 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -3549,6 +3549,8 @@ radv_compile_gs_copy_shader(LLVMTargetMachineRef tm, ctx.ac.builder = ac_create_builder(ctx.context, float_mode); ctx.stage = MESA_SHADER_VERTEX; + radv_nir_shader_info_pass(geom_shader, options, &shader_info->info); + create_function(&ctx, MESA_SHADER_VERTEX, false, MESA_SHADER_VERTEX); ctx.gs_max_out_vertices = geom_shader->info.gs.vertices_out; |