diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-07-09 09:41:14 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-07-09 09:52:50 +0200 |
commit | 64cd972ffb479d950d8d28a3894ce274abb44c78 (patch) | |
tree | f045847924c75b4362f1451f24206b0a2c14568d /src/amd/vulkan/radv_pipeline.c | |
parent | 3f50007ad8b26a884d72df50914e5f161eb8d8a1 (diff) |
radv/gfx10: Use correct gs_out for tess point_mode.
Fixes: 204e4da9b47 "radv: Use correct gs_out with tessellation."
Reviewed-by: Samuel Pitoiset <[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 9431a0d1999..be43204a7b4 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -4197,7 +4197,10 @@ radv_pipeline_init(struct radv_pipeline *pipeline, gs_out = si_conv_gl_prim_to_gs_out(pipeline->shaders[MESA_SHADER_GEOMETRY]->info.gs.output_prim); pipeline->graphics.can_use_guardband = gs_out == V_028A6C_OUTPRIM_TYPE_TRISTRIP; } else if (radv_pipeline_has_tess(pipeline)) { - gs_out = si_conv_gl_prim_to_gs_out(pipeline->shaders[MESA_SHADER_TESS_EVAL]->info.tes.primitive_mode); + if (pipeline->shaders[MESA_SHADER_TESS_EVAL]->info.tes.point_mode) + gs_out = V_028A6C_OUTPRIM_TYPE_POINTLIST; + else + gs_out = si_conv_gl_prim_to_gs_out(pipeline->shaders[MESA_SHADER_TESS_EVAL]->info.tes.primitive_mode); pipeline->graphics.can_use_guardband = gs_out == V_028A6C_OUTPRIM_TYPE_TRISTRIP; } else { gs_out = si_conv_prim_to_gs_out(pCreateInfo->pInputAssemblyState->topology); |