diff options
author | Samuel Pitoiset <[email protected]> | 2019-07-11 08:44:16 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-07-11 15:45:53 +0200 |
commit | 5bbcb3f5bc665b99aadb0e289eee646310e307fd (patch) | |
tree | a386efd5105ec05c7950bc473507a1bb6570eb98 /src/amd/vulkan/radv_pipeline.c | |
parent | 7286865f6de4c0f949c3301de2e3bebbedcada75 (diff) |
radv/gfx10: implement support for GS as NGG
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline.c')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 8417eab41db..5c97aae39a8 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2023,7 +2023,10 @@ static const struct radv_prim_vertex_count prim_size_table[] = { static const struct radv_vs_output_info *get_vs_output_info(const struct radv_pipeline *pipeline) { if (radv_pipeline_has_gs(pipeline)) - return &pipeline->gs_copy_shader->info.vs.outinfo; + if (radv_pipeline_has_ngg(pipeline)) + return &pipeline->shaders[MESA_SHADER_GEOMETRY]->info.vs.outinfo; + else + return &pipeline->gs_copy_shader->info.vs.outinfo; else if (radv_pipeline_has_tess(pipeline)) return &pipeline->shaders[MESA_SHADER_TESS_EVAL]->info.tes.outinfo; else |